"Ahmad Mansour" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > is there any limitation in array size? > i get fatal alert when running my program, > my array is : > Char* membersArray[1200];
You're probably running out of stack space here.(Run your app in POSE to test this.) A pointer takes 4 bytes, so you need 4800 bytes on the stack here. (I assume you want to allocate an array of Char pointers here.) One solution is to allocate it on the heap: -------------------------- // Allocate array on the heap // Be sure to use cast it to a pointer-to-pointer type! Char** members = (Char**) MemPtrNew(1200 * sizeof(Char*)); // Do stuff here members[0] = "Hello "; members[1] = "world!"; // Free the memory when you're done. MemPtrFree(members); -------------------------- Regards -Laurens -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
