is it possible that array is so big that it can't be allocated? if you use memptrnew to allocate it must take less then 64kb. if you need more then use function from palmos glue library (MemGluePtrNew or something like that)
[EMAIL PROTECTED] wrote: > I'm working with global variables in a shared library. I placed an array of > structures in the global variable. I defined the size of my array and when I > run the program there was a fatal alert that popped out. I tried testing some > things and I found out that if I decrease the size of my array, the error > would not pop out. > > run68k.c, Line:2306, Invalid write to 00000002 > > the "00000002" would vary. and I believe the Invalid write was sometimes > invalid read? > > What does this mean? > what's the problem with a large array size? > how can I prevent this error from coming up? > How should I handle it so there would be no problem? > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
