static void game_loop(void) SECT2;
If I remove SECT2 from game_loop these errors goes to other procs.
If I disable game_loop which is in my PilotMain() cc compiles with no errors & my app works fine except this proc. also when I add this (I know this is not possible for segmentation) line below it compiles with no errors & warnings, but crushes. :)
UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags) SECT2;
:)
I'll be very happy if someone helps me. Here is my main proc which game_loop is disabled and works fine. Yilmaz Yoru
UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags) { Err err = 0; if (cmd == sysAppLaunchCmdNormalLaunch) { init_system(); do { switch(game.status) { case GAME_PLAY: //game_loop(); break;
case GAME_TEAMS:
teams_loop();
break; case GAME_HELP:
help_loop();
break; case GAME_OPTIONS:
options_loop();
break;
case GAME_INTRO:
intro_loop();
break;
};
}while(game.status!=GAME_EXIT);
if(!stopped) stop_app();
}
return err;
}-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
