Exception handling really consumes a lot of data segment (with the zero
overhead technique used in CodeWarrior)... If you don't need to throw
complex objects and don't need to have the stack objects destructors
called, then you might consider switching to palm native exceptions.
That's what I did... Most of my exceptions are fatal anyway and I use a
globally allocated object to hold the exception information. Not as
elegant as the real C++ exception but it works for me.
Good luck.
Jerome
Jefferson wrote:
Hi all, I'm facing a problem in my Palm project that "Near data
segment is bigger than 64K". The project uses c++ features such as
polymorphism and exception handling. Due to these mechanisms the data
segment exceeds. If I disable exception handling, I didn't get the
error. But I don't want remove exception handling. I tried with
compiler options “PC-relative strings” and "PC-Relative Constant
Data". But it didn't solve the problem. Is anybody have idea about
this please help me.
Thanks, Jeffy.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/