On Thu, 14 Dec 2000, Steve Mann wrote: > At 9:15 AM +0100 12/14/00, Danko Radic wrote: > >My app is sublaunched from another one and passed cmdPBP block is CharPtr > >to memory block used in my app (i have to read it only). When I try to > >determine memory chunk size via MemPtrSize(passedPointer) it crashes the > >application with "MemoryMgr.c, Line 4183, Invalid chunk ptr" (it's PalmOS > >3.1 - visor). > > Do you change the owner of the chunk to 0 before passing it? I > believe you have to do that in order for it to be passed successfully. > > Regards, > Steve Mann I don't know. App that calls my application is not written by me (it's firmware in some pager springboard module). All I know is that pointer being passed to me. On the other side, in my simulation of caller (where I create *DM record* (not MemPtrNew() chunk), lock the pointer and sublaunch my receiver with that pointer) I do *not* change owner ID (as I can recall) and it works fine. I cannot figure out the difference except that it doesn't work fine unless it's DM record... In other words, you claim that I cannot determine the size of chunk with passed pointer unless the calling application set it's owner ID to SYSTEM? -DR -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
