stop() is not getting called
in
Core Library Questions
•
2 years ago
hi all,
i am having trouble with stop(). it nevers gets called.
i can see from this thread:
http://forum.processing.org/topic/network-library-possible-to-stop-client-before-application-is-closed
that stop() is not guaranteed to be called, when quitting the program... hm... is there a foolproof way?
for instance, when running+quitting this code, nothing is printed
- void setup() {
- size(200,200);
- }
- void draw() {
- background(int(random(255)));
- }
- void stop() {
- println("stop");
- }
1