New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exit() is not called in P2D/P3D #4156

Closed
darthyoshi opened this Issue Nov 18, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@darthyoshi

darthyoshi commented Nov 18, 2015

With the OpenGL renderers (P2D/P3D), exit() is only called if closing the sketch via the ESC key. Closing the sketch via the close window button or ALT+F4 does nothing.

void setup() {
  size(800,600,P2D);
  //size(800,600);
}

void draw() {}

void exit() {
  println("closing");
  super.exit();
}

@codeanticode codeanticode added the opengl label Nov 18, 2015

@codeanticode codeanticode self-assigned this Nov 18, 2015

@codeanticode codeanticode added the macosx label Nov 18, 2015

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Nov 18, 2015

Member

@darthyoshi Ok, I'm able to reproduce this on Mac OS X. I assume you are on Window, right?

Member

codeanticode commented Nov 18, 2015

@darthyoshi Ok, I'm able to reproduce this on Mac OS X. I assume you are on Window, right?

@darthyoshi

This comment has been minimized.

Show comment
Hide comment
@darthyoshi

darthyoshi Nov 19, 2015

Primarily Windows, yes, but I've also seen this on Linux.

darthyoshi commented Nov 19, 2015

Primarily Windows, yes, but I've also seen this on Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment