Page 1 of 1

reading from csv

PostPosted: Apr 21, 2008 @ 7:37pm
by jrhee

PostPosted: Apr 22, 2008 @ 12:00pm
by edge

PostPosted: May 1, 2008 @ 11:22pm
by jrhee
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.

PostPosted: May 2, 2008 @ 7:55am
by edge

PostPosted: May 2, 2008 @ 4:58pm
by jrhee

PostPosted: May 5, 2008 @ 10:07am
by edge
Hi,

Maybe you can try using a static array instead of dynamically allocating it, and make a test with a fixed size map.

PostPosted: May 5, 2008 @ 5:40pm
by jrhee

PostPosted: May 6, 2008 @ 3:23pm
by edge