your right for that sample code.. in actuality I do allocate memory for
every pointer (not just n), I just fudged together an example that was
incomplete ;)

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Richard
Burmeister
Sent: Wednesday, July 11, 2001 5:25 PM
To: Palm Developer Forum
Subject: RE: Memory Management question


> What is n in memptr[n]?  What about each
> memptr[x], where 1 <= x <= items?

Oops!  I should have said "0 <= x < items".  Hopefully, the idea was clear:
the code he posted did a MemPtrNew() and assigned the result to memptr[n],
ignoring all the other pointers in that array.


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


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