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). Well, I was lucky 'cause the content of that memory block was null terminated ASCII string and I got away with StrLen(), but what to do if it was some binary encoded data - *how to determine chunk size and/or use other MemMgr functions*? Suppose that ponter to data only is passed when my app is sublaunched and that I have no idea *how* that chunk was created (MemPtrNew or DM record etc.). What are the limitations on MemMgr usage? I have to say that when I simulate the first application by my_caller_app where I create DM record, lock the pointer to data and then sublaunch the same receiver (with MemPtrSize() upon that pointer), there's *no* crash! Rgds, -DR -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
