Okay, I found it. I was accessing global data on the reset launch. When I
moved the call into the startup launch code, the problem went away. I
thought this call was okay if the call was into the first segment, but
apparently not.
Steve
"Steve Achelis" <[EMAIL PROTECTED]> wrote in message
news:36936@palm-dev-forum...
>
> There was a very long thread on this subject in December. It was solved
by
> the developer switching to POSE 3.0a8. Unfortunately, I'm having the same
> problem and it happens with 3.0a8 (and 3.0a7).
>
> If I put a breakpoint (using CW7) in PilotMain() (and in MyMain() where I
> handle sysAppLaunchCmdSystemReset), they don't get triggered following
Reset
> in POSE. Shouldn't they?
>
> Also, sometimes the message is stack overflow, but usually the debugger
pops
> up in the weeds (i.e., in my code, but code that shouldn't be executing).
> The last three items on the call stack are my functions (which I don't
think
> were called, at least break points in them were never triggered and they
> aren't related to startup). Then the call stack shows (in reverse order)
> the system calls: PrivCallSafely, SysAppLaunch, SysBroadcastActionCode,
etc.
> It seems as if the Reset command is calling into the middle of my code,
> rather than into my PilotMain().
>
> My app is multi-segment. I've wondered if it is a segmentation issue.
>
> Any ideas? I've spent many days on this one and am stumped.
>
> Steve
>
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/