* Global variables
 *********************************************************************/
char *gcDesc = new char(127);
char *gcNote = new char(iNoteSize); 
char *gcApptDate = "     space for long date   ";
char *gcDateTrigger = "     Select Start Date      ";

these create 4 memory leaks...  tried to delete them in AppStop().  Caused
bus error in most cases.


-----Original Message-----
From: Ben Combee [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 26, 2004 3:38 PM
To: Palm Developer Forum
Subject: Re: deleting global pointers

At 01:18 PM 4/26/2004, you wrote:
>How can I re-allocate the memory of a global pointer.  I tried deleting it
>in AppStop(), but it threw a bus error...

How was the memory referred to by this pointer originally allocated?  That 
will determine your ability to reallocate it.

-- Ben Combee, DTS technical lead, PalmSource, Inc.
    Read "Combee on Palm OS" at http://palmos.combee.net/


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