First of all, a memory leak in Poser would be something for the host OS
(Win/Mac/etc) to worry about. That's not what we're talking about here. A
memory leak reported by Poser is quite a different beast! It's actually a
feature of the debug ROM, and not Poser at all. If you were to flash your
actual device with a debug ROM, it would check for memory leaks whenever you
switched apps. In general, you should do your best to track down any memory
leaks. That's why we put the tests in the debug ROM's.
I stuck your code into the Starter app and ran it on Poser with the latest
4.0 debug ROM and the 3.5 ROM you mentioned, with and without Gremlins.
Poser didn't complain about any memory leaks.
Can you build a little test app to demonstrate the problem? If so, send it
to me, and I'll look into it. If not, then you can gradually simplify your
app until the problem goes away, and you'll have found your leak.
--
Danny Epstein
OS Engineer, Palm Inc.
[EMAIL PROTECTED]
"Ulf Schroder" <[EMAIL PROTECTED]> wrote in message
news:37352@palm-dev-forum...
> 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/