Quitting a plugin application

edited November 2011 in Help request
How do I quit a plugin application from the code? I can't seem to figure it out.

EDIT: I made a little progress by using orxMoudle_ExitAll(). But it gets stuck in an infinite loop when it tries to exit the clock module. I had a 9.3 megabyte text file that was full of this line:
<CLOCK> (orxClock_Delete() - f:workspaceorxcodesrccoreorxclock.c:829) Can't delete clock <> as it's currently locked for processing!

I can't think of what else to do.


  • edited November 2011
    Ahah, yes, trying to exit the modules why you're in the middle of a clock update isn't going to work nicely. It's a bit like cutting the branch under you. :)
    orxEvent_SendShort(orxEVENT_TYPE_SYSTEM, orxSYSTEM_EVENT_CLOSE);

    That should do the trick.
  • edited November 2011
    I figured there was a better way to do this. Thanks!
Sign In or Register to comment.