processing-android icon indicating copy to clipboard operation
processing-android copied to clipboard

exit() not called when stopping a sketch from the GUI

Open darkwave opened this issue 11 years ago • 1 comments

If I register the exit method using registerMethod("exit", this); inside setup() it will not be called when I stop the sketch from the GUI stop button. This is important when using webcam in order to dispose it... speaking of dispose: shouldn't it be dispose() instead of exit()?

Registered exit method works fine when exiting using back button on devices.

darkwave avatar Sep 03 '14 06:09 darkwave

This is not just for android, this is also in the normal processing.

clankill3r avatar Sep 19 '22 08:09 clankill3r