FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Programs
(Moderators: fry, REAS)
   continued running after stop
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: continued running after stop  (Read 264 times)
depth

WWW Email
continued running after stop
« on: Apr 29th, 2004, 8:02pm »

my sketch seems to be running something in the background after i stop it.  a while after i stop a sketch (anywhere up to about 15 seconds), i often get an indexOutOfBounds exception out of the blue, and sometimes the whole os starts to run more slowly.  this is similar to, but not the same, as my recent post concerning net...this seems to happen even if net and video are disabled.
 
i overrode public void stop():
 
public void stop(){
  if (cameraEnabled){ endVideo(); };
  if (netEnabled){ endNet(); };
}
 
perhaps this is causing a problem?  or perhaps it's something else?
 
-depth
 
ps.  sorry - v67, win98
« Last Edit: Apr 29th, 2004, 8:06pm by depth »  
TomC

WWW
Re: continued running after stop
« Reply #1 on: Apr 29th, 2004, 8:30pm »

Did you override stop() to try and fix it, or for some other reason?  If the latter, try adding super.stop() at the end of your custom stop method and see if that fixes it.
 
depth

WWW Email
Re: continued running after stop
« Reply #2 on: Apr 29th, 2004, 11:09pm »

i think that did it, tom.  thanks.
 
Pages: 1 

« Previous topic | Next topic »