This site is no longer active and is available for archival purposes only. Registration and login is disabled.

reading from csv


reading from csv

Postby jrhee » Apr 21, 2008 @ 7:37pm

jrhee
pm Member
 
Posts: 26
Joined: Apr 7, 2008 @ 4:28pm


Postby edge » Apr 22, 2008 @ 12:00pm

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby jrhee » May 1, 2008 @ 11:22pm

Thanks Edge, that was it exactly.

I've been expanding my code and its been going well, but I've run into a strange problem. I'm parsing through the the values contained in a csv file and loading them into a two dimensional array. It seems to work perfectly fine on my PC, but when I run it on either of two WM devices, or on the MS Device Emulator, zero values are inserted seemingly arbitrarily into my array. Since the array contains information for a tile based map, this results in my zero tile being displayed, and the alignment of the remaining tiles in the row to be thrown off.

Each time I load the application on a device, the zero tiles appear in the same place. However, the zeros appear in different places on each of my respective test devices. I tried installing to main and to storage memory, but the results are the same.

What's even stranger is that when I start using the Log function in my loading loop to see what's going on, the map data loads fine. Does anyone have any idea as to what might be happening here? If you'd would like to see my code, please let me know.
jrhee
pm Member
 
Posts: 26
Joined: Apr 7, 2008 @ 4:28pm


Postby edge » May 2, 2008 @ 7:55am

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby jrhee » May 2, 2008 @ 4:58pm

jrhee
pm Member
 
Posts: 26
Joined: Apr 7, 2008 @ 4:28pm


Postby edge » May 5, 2008 @ 10:07am

Hi,

Maybe you can try using a static array instead of dynamically allocating it, and make a test with a fixed size map.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby jrhee » May 5, 2008 @ 5:40pm

jrhee
pm Member
 
Posts: 26
Joined: Apr 7, 2008 @ 4:28pm


Postby edge » May 6, 2008 @ 3:23pm

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron