At 03:15 AM 1/14/2006, you wrote:
Subject: new returning invalide pointer!
From: "Chris Bruner Compulife" <[EMAIL PROTECTED]>
Date: Sat, 14 Jan 2006 01:35:50 -0500

I'm stuck. Code that was working is now blowing up all over the place.
I've trace the first instance to

pUserPath = new char[21];

The debugger says that pUserPath is an invalid pointer after this is run.
Anyone have any idea what could be happening?

Try
pUserPath = MemPtrNew (sizeof(char)*21);
if (!pUserPath) {
        .....
        // handle error
}


Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)


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

Reply via email to