Ok this code seems to work fine !
But is there a way to allocate more than maxChunk ?
I have 16MB on my palm, but can allocate only 900k

Pealse help ! :\

Chris


----- Original Message -----
From: "Jan Slodicka" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, January 24, 2003 7:21 PM
Subject: Re: Free memory


> This code should do it:
>
>    UInt16 hId = MemHeapID( 0, 0 ) ;
>    UInt32  nFree, maxChunk ;
>    MemHeapFreeBytes( hId, &nFree, &maxChunk ) ;
>
> Jan Slodicka
>
> ----- Original Message -----
> From: "Chris Apers" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Friday, January 24, 2003 1:03 PM
> Subject: Free memory
>
>
> > Hi,
> >
> > How can i find the total amount of free memory programaticaly ?
> > the GetOSFreeMem from palm show always the same amount
> > even if i allocate memory.
> >
> > thanks
> > Chris
> >
> > --
> > 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