Well, it just won't work. You're allocating with one memory manager and
deallocating with another memory manager. The two are not necessarily
interchangable.

-- Keith






Jeff Ishaq <[EMAIL PROTECTED]> on 02/10/2000 12:57:56 PM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

Sent by:  Jeff Ishaq <[EMAIL PROTECTED]>


To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (Keith Rollin/HQ/3Com)
Subject:  Mixing MemPtrNew and delete




So what bad things can become of this:

CharPtr myStringP = (CharPtr) MemPtrNew( 50 );
delete myStringP;

And of course this:

CharPtr myStringP = new char(50);
MemPtrFree (myStringP);

Just a passing thought,
-Jeff

--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palm.com/devzone/mailinglists.html






-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to