Hi All,
I have a Palm app built with PRC-Tools. It's a pretty big, multiple
code section, app.
Problem is now at certain places, Palm API calls that where working
fine
are acting really bizarre, returning flakey results or generating
"strange" errors on the Palm OS Emulator.
What can I do to try and track down what is "making it get so
messed-up"?
( I'm running this on a 4.0 DebugROM )
Here are some examples of what's going on:
I populate a pop-up list at runtime, and in many other places I use the
EXACT SAME CODE, and they work fine, but in this one place
lstP = GetObjectPtr(EditActLst);
selItem2 = LstGetSelection(lstP);
selItem2 keeps returning "0" when it should be returning "2" etc., and
I made sure that "lstP" ( and the list resource ) ARE VALID.
It doesn't end there.. :-(
I have an Encrypt() routine..
if ( SocWrP )
{
MemPtrFree(SocWrP);
SocWrP = NULL;
}
// Encrypted chunk to send..
SocWrP = MemPtrNew((UInt32)retLen);
This is getting called many times, and all working fine ( the memory
gets allocated ).. then out of the blue, I get this error message (
when it hits MemPtrNew() )..
Yes, SocWrP is global, so it shouldn't be getting "reset"..
4038.057: === ERROR: During a regular checkup, Palm OS Emulator
determined that the dynamic heap chunk with header address 0x0003B456
got corrupted. The size of the chunk (%chunk_size) was larger than the
currently accepted maximum (%chunk_max).
at the time this happened "retLen" is only 125 ( bytes )
The code section these are in is getting pretty big, but I get no
messages that it's "past it's limit".. I suspect that something is
getting stomped-on, but what??
This is driving me crazy!
Any help would be appreciated.
Thanks,
Joe Siebenmann
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/