Hi Jason,
>From the information provided, it is possible that the layout of your
segments could be the cause of the problem. I've sent you an email directly
regarding this, but I think the README in the project stationery is
incorrect i.e. it asks you to exclude those calls called when
sysAppCmdNormalLaunch is received. The instructions in the Targeting Palm OS
docs are the correct ones in this case. Try rearranging with this in mind to
see if it works.
Jun-Kiat Lam
Metrowerks Technical Support
----- Original Message -----
From: "Jason Garrett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 05, 2000 10:17 PM
Subject: CW6 - Compiles, Links, but errors before PilotMain()
> Hi
>
> I can compile, and link my project, but when I Ctrl-F5 for debugging on
> the emulator, I don't get as far as stepping through the PilotMain
> function. An assembler window appears (notorious for appearing when
> I've done something wrong), and a dialog appears, containing a few
> garbled characters/symbols.
> Is this a bug in the compiler? Any ideas as to what I should pay
> attention to, to identify the problem?
>
> I suspect my problem lies with globals, and segments, but am unable to
> pinpoint the cause.
> When I start to comment sections of code out, the problem can be
> removed. It appears to relate directly to whether or not a call is made
> to another segment. What is most bizarre is the way that it dies prior
> to the PilotMain() call rather than later in the code when it gets to
> it.
>
> Could I have overflowed the stack in some way affecting program
> initialization?
> Is there a way to step through the initialization code prior to the
> PilotMain()?
>
> I've adhered to the Multi Segment Project Stationary Readme file, which
> explains how any code that would be called by events other than the
> 'Normal App Launch event', should be in the first segment (using the MAP
> file to confirm).
> So from this point on, I am at a loss, and am just scratching at it
> trying to make it work.
> Any help would be greatly appreciated.
>
> Jason Garrett
> Wireless Data Services
> Ph: +64 9 3794710 Fax: +64 9 3797360
>
>