Hello all,

Attempting to switch out of one of my apps:

"UIAppShell" (unkown version) reports "SystemMgr.c, Line: 4384,
Possible memory leak at 0x00040CA.  Use the 'hd 0' command to find
chunks owned by your app.  These chunks have an ownerID of 2".

Commenting the below code eliminates the error.

      
        MemHandle       txtH;
        MemPtr          txtP;
        MemPtr          strP;
        char mychar[15];

        StrCat(mychar,"Hello");
        strP = (char *) mychar;

        // get some space in which to stash the string.
        txtH    = MemHandleNew(  StrLen( strP ) + 1 );
        txtP    = MemHandleLock( txtH );


        // copy the string.
        StrCopy( txtP, strP );


        // unlock the string handle.
        MemHandleUnlock( txtH );
       DmReleaseResource(txtH);
        txtP = 0;

Pls help!

Rgds
Jeffy

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

Reply via email to