swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there some way to "hard" quit?


From: glen e. p. ropella
Subject: Re: Is there some way to "hard" quit?
Date: Thu, 14 Oct 1999 11:20:35 -0700

At 09:50 AM 10/14/99 -0700, you wrote:
Hey all-- I was wondering, I followed (loosely) the tutorial's programming framework for creating a simulation, but I want the program to completely quit instead of returning to the Start-Next-Save-Quit-Whatever toolbar at the end-- is there some command that stops the program entirely and releases all the memory its been using without having to click "Quit"? I was running this on LinuxPPC and an iMac-- while its running it uses 100% of the cycles available, once its done running and just waiting for someone to click "Quit" it's still using about 70% of the cycles (doing what, I'm not sure)-- thanks!

Hey Jonathon,
You should be able to insert a exit(0); command in your code
somewhere that will cause the whole process to quit.  You could
even throw up a widget that says something like:
This Swarm process will quit in 5 seconds unless you hit
the "Wait" button.  I'd suggest you follow the lead of
the Mousetrap application.  Look through the code and find
the part where the message "All the balls have landed." is
printed.  For you, instead of printf();, just put an
exit(0);

glen

--
glen e. p. ropella =><= Feeding the hamster wheel.  Hail Eris!
Home: http://www.trail.com/~gepr                (505) 424-0448
Work: http://www.swarm.com                      (505) 995-0818

                 ==================================
  Swarm-Support is for discussion of the technical details of the day
  to day usage of Swarm.  For list administration needs (esp.
  [un]subscribing), please send a message to <address@hidden>
  with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]