> From: Adam Wozniak [mailto:[EMAIL PROTECTED]]
>
> UInt8 *foo = new UInt8[128*1024];
>
> No warnings?? No errors?? Nothing, just POW, end of program,
> welcome to the prefs window, thanks for playing.
What version of 'operator new' is this: the one in the Metrowerks library,
or have you defined your own? If it's the MSL one, it appears to throw a
bad_alloc exception in this case. Since your code doesn't catch the
exception, your program should abort suddenly as described.
My advice: use local versions of the memory operators that trivially wrap
MemPtrNew and MemPtrFree without throwing exceptions. It's old-fashioned
but seems to well suited to the minimalist Palm programming mindset.
-slj-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/