> From: Anne Srinivas [mailto:[EMAIL PROTECTED]]
> I am currently porting an application from c++ for desktop to Palm OS
> In the application the following statement is extensively used.
>
>         delete [] m_p;  // Where m_p is a ptr to a dynamic array
>
> What is the equivalent of it in palm?

Well, if you're using C++ on the Palm, then this line of code can be copied
as-is.  Both compilers support the usual C++ memory operators.

> I came across only MemPtrFree.  But that is not the solution!!

Or do you mean you are rewriting the app to not use the C++ memory
operators?  That sounds like quite a chore.  But if so, then MemPtrFree _is_
the OS call for freeing heap allocated memory.  It's what ultimately gets
called by 'operator delete' and 'operator delete []'.

-slj-


-- 
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