I use the exchange manger to create a memo from my app. When I run the program
in POSE I get a 18 bytes memory leak with owner 0.

The ROM "PalmOS40dr3-efigs-colordbg" always generates a memory leak.
The ROM "palmos35-dr4-en-colordbg" generates a memory leak in gremlin mode, but
not in normal mode.  

Does anybody know if this is a POSE problem or a real problem in my code?  Here
is the code (if I comment out  ExgSend, I don't get any memory leaks from
the program):

beam(const Char* description, const Char* text)
{
    ExgSocketType exgSocket;
    ::MemSet(&exgSocket, sizeof(exgSocket), 0);
    
    exgSocket.description = (Char*)description;
    exgSocket.name = "test.txt";
    exgSocket.type = "text/plain";
    exgSocket.length = 7 * 100;
    exgSocket.target = sysFileCMemo;
    exgSocket.localMode = 1;

    Err error = ExgPut(&exgSocket);
    if (!error)
    {
        ExgSend(&exgSocket, text, StrLen(text), &error);
        ExgDisconnect(&exgSocket, error);
    }
}

/Ulf Schröder

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

Reply via email to