I only run it in release mode. Just on thing I forgot to mention.
I run it on Tungsten W and I use CW v8.3

Agus

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] la part de Rodolphe
Br�jaude
Envoy� : mardi 24 juin 2003 12:52
� : Palm Developer Forum
Objet : Re: MemPtrFree - invalid chunk

do you have the pb in Debug and in Release mode?

Perhaps you should resize up the stack (in project setting in CodeWarrior)



----- Original Message -----
From: "Agus" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, June 24, 2003 12:24 PM
Subject: MemPtrFree - invalid chunk


> Hi all,
>
> Here's my code looks like :
>
>
> // global
> char        **gsListBuffer;
>
> static void AppEventLoop(void)
> {
>     int i;
>
>     gsListBuffer = (char **) MemPtrNew ( 8 * sizeof (char*) );
>
>     for ( i = 0; i < 8; i++ )    gsListBuffer[i] = (char *) MemPtrNew
(50);
>
>    do
>    {
>      ....
>    } while ();
> }
>
> static void AppStop(void)
> {
>     int i;
>
>     // free listbox buffer
>     for ( i = 0; i < 8; i++ )  MemPtrFree ( (char *)gsListBuffer[i] );
>
>     MemPtrFree ( (char **) gsListBuffer );
>
>     ....
> }
>
>
> When I quit my application, I got an error "Invalid Chunk ptr". It seems
> that I do not free the memory allocated correctly, but I don't see what is
> wrong in my code ???
>
> Please advise needed.
>
> Thanks in advance,
>
> agus
>
> --
>
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/


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


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

Reply via email to