At 17:05 2003-3-27 -0500, you wrote:
I am having some trouble with segmenting my application. I am using POL. As my application has grown my segment 1 has become too large. It has the usual suspects in it:
POLD1.lib
PalmOSRuntime
POLDA.pch++
starter.cpp
starterapp.cpp


If I move any of these files out of segment 1, I get the following error from POSE when I Kill my debugging session: "XX just changed the emulated program counter to XX. This address is in neither RAM nor ROM."

If I leave all these files in segment 1, I get a linker error about destructors being out of range for 16 bit references unless I comment out the registration of my forms (this seems to have been what caused the size to grow beyond the limit)

I am not using extended, no exceptions and am debugging and compiling on a Mac using version 8 compiler.

I know there's some important stuff that needs to be in the first segment - but really don't know much beyond that. Can anyone give me an idea as to how to break my segment up safely?

I think you need to look at breaking up your starter.cpp or starterapp.cpp files. Do you have a lot of code in these files? If so, look for code that would only be called when your application was running as the primary app, move those to another source file, and stick that source file into another segment.


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to