At 03:37 PM 12/23/2003, David Beers wrote:
Thanks again, Matt.  I had the same problem with trying to use #pragma
Segment 1 (space between "Segment" and "1") so that the name would match the
default name that CW supplies.  But using #pragma Segment1 (without the
space) did not cause the compiler to map the code into that segment for me.
Instead I just get the startup code.  As a result, my application crashes
with memory access errors the first time I try to assign a value to a local
variable.  Again, I'd break up my source into different files and use the
feature to segment by file except that this is an open source project with
lots of developers and the majority do not use CW.  So I'm making a rather
disruptive change (and possibly messing up the source control system) if I
do that.

Rename the first segment to "Segment1" in the IDE. This is a bug with the compiler not accepting segment names that have embedded spaces.


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