I haven't run into such a problem (and my code would blow up as well in that
case).

Just an idea -- did you hook up a leak tracking system?  (e.g. macro that
redirects MemPtrNew to something else that allocates a little extra space at
the beginning of the chunk for a debug header, such as next/prev pointers
for a linked list, then returns the actual pointer + the header size).
Maybe the header size is not a multiple of 4?



"Jan Slodicka" <[EMAIL PROTECTED]> wrote in message
news:113604@palm-dev-forum...
>
> Hi
>
> I don't know if I am blind and don't see something, but following line
>     FileReader  *reader= (FileReader *)MemPtrNew( sizeof(FileReader ) ) ;
> produced the value 0x3AA52 on the emulator. As I am checking the result on
> 4-byte alignment (before passing to ARM), I could catch the bug.
> Palm OS Companion says: "Note that MemPtrNew returns chunks beginning on
> 4-byte boundaries..."
>
> I got this problem on the emulator only so it might be just an emulator
bug.
> If so, then I have to change the bug detection policy.
> Can somebody explain where is the problem?
>
> Thank you in advance.
>
>     Jan Slodicka
>
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to