All-

I've been working on a project for a while, and today, I got the
following link error:  "SoundForm.cpp: 'CSoundForm::CSoundForm(unsigned
short)' 16-bit code reference to 'PPalmForm::PPalmForm(unsigned short)'
is out of range."

>From my mac development days, I remembered something about 32K segments,
and since my project is now 56K, I assumed it was a segment problem.
Sure enough, by simply rearranging moving CSoundForm and PPalmForm
closer together, the error went away.  (Incidentally, I could also
create another segment, move one of the files there, and the problem
also went away).

So my question is this:  What considerations should I use for segmenting
my application?  Is is good enough to rearrange my files so calls are
close together?  Should I segment my app?  If so, how should it be
segmented?  Shoudl I put all form files in the same segment?  or should
I put parts of the application that work together in the same segment?
or maybe I should put all my base classes in the same segment, or maybe
the palmos libs.

Anybody have an opinion they would like to share?

Thanks, Ted


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