I wrote a C++ string class that overloads operator= and operator+.   The
problem is that doing things like

String A = B + C + D + E + F + G;

causes my application to become unstable and end up with "Fatal Exception."

I know that there is no bug in the code because my String class runs fine on
PC's compiled with Visual C++.

Could it be possible that the App is running out of heap space?     When you
do a "new char[x]"  is this memory taken out from the local application
heap, or is the space allocated in dynamic memory?  ( like MemPtrNew() ?)

How does one create an object that is located on the dynamic heap?  Clearly,
MemPtrNew(sizeof(someobject)) will not cause the constructor for that object
to be called, nor its destructor.





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