Traditional global variables are not allowed in shared libraries. Global variable functionality in shared libraries are provided by adding variables to the LibGlobalsType or LibClientContextType strucutres in the LibPrivate.h header of your library.
Access these variables in your implementation via the PrvLockGlobals or PrvLockContext functions. Eric Lyons <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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/
