Thanks for your help,
but no, I do not have such code. Seems, I had another look
at this problem.
Regards,
Maik
> Date: 7 May 1999 23:33:54 -0700
> From: Ade Barkah <[EMAIL PROTECTED]>
> Subject: Re: AW: System find
>
> [Device crashes during system find]
>
> Did you find the bug yet ? Since it's not globals, memory starvation,
> or having PilotMain in the wrong segment, I'm running out of ideas...
> but one last thing you might want to check. In your PilotMain, do you
> have any code that's not enclosed within a launch code check ?
>
> That is:
>
> DWord PilotMain (Word launchCode, Ptr cmdPBP, Word launchFlags)
> {
> Err err;
>
> SOME_CODE_HERE; // This could be the problem!
>
> if (launchCode == sysAppLaunchCmdNormalLaunch)
> {
> more_code; // Ok
> }
> else if (launchCode == sysWhatever... )
> {
> even_more_code; // Ok
> }
> else
> {
> finish_up; // Ok
> }
>
> SOME_CODE_HERE; // This could be the problem!
>
> return 0;
> }
>
> I suspect you don't, but worth checking. =-) Anything outside
> the 'if' blocks might trigger the problem you're seeing. Anyway,
> that's all I can think of... =-(
>
> Regards,
>
> - -Ade
>
>
>