> A lot of times I will get a more descriptive (but by know means more
> useful) error "Application is writing to unallocated chunk".

I've tracked down a few of these.  One way to get a better idea about the
cause is to look at the stack trace in the debugger window and go back until
you can find a part of your program.  If it is a event handler, look at the
event structure.  In my case, I followed this procedure this morning and
realized that I had wrongly unlocked the handle to a field's text string,
and it's lock count was going negative when the OS was closing the form.
(The documentation for FldGetTextPtr should indicate that the locked string
it returns shouldn't be unlocked by user code, in my opinion).

Also, make sure you have all the warnings on in your CodeWarrior project.
The compiler has saved me several times, especially with its "uninitialized
variable used" errors.




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to