Hi
I have a very strange problem: The MemPtr call bellow never returns when run
on the device (both on Thungsten and m515) .
BitmapPtr dibPtr = BmpCreate( 24, 24, 16, NULL, &error );
// ... Here are the dib bits filled and lot of other things done
dataSize = MemPtrSize( dibPtr ) ;
Here is what I checked:
- pointer value (0x1B43E0 seems to be reasonable)
- Calling MemHeapCheck() just before MemPtrSize() returns with success.
- There is plenty of free dynamic memory in this moment
- Calling MemPtrHeapID(dibPtr) just before MemPtrSize() freezes as well.
- Identical code runs error-free on several debug roms
- hard reset did not help
- I reviewed the code if there is proper error checking - it seems like
everything is checked
The code used to run safely until some changes were done in seemingly
unrelated part of the program.
The application has several segments. This part is in the 1st segment whose
size is pretty close to 64K. I tried to switch off several files from the
project or move to another segment ... no change.
The whole thing reminds me the deadlock situation, but I don't know how this
can happen on Palm, resp. how could I cause it.
Can anybody give me some advice what to check additionally?
Jan Slodicka
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/