atexit(ofExitCallback); #275

Closed
vanderlin opened this Issue Nov 30, 2010 · 3 comments

Projects

None yet

4 participants

@vanderlin

This is giving me some crashes. There needs to be a way to disable this when making custom windows. I have tried to do atexit(NULL); but the callback in ofRunApp(ofBaseApp * OFSA) is still being called.

maybe something like:

void ofRunApp(ofBaseApp * OFSA, bool useExitCallback);

@sketch34

I just noticed on Win7 that if you close the command line window (hit the red X) it doesn't appear to finish calling the default ofExitCallback(). The program gets terminated mid-callback. If you close your GLUT window (or hit the esc key) it completed the callback fine.

On release builds it crashes for me when clicking close on the command line window.

@bilderbuchi
openFrameworks member

@arturoc is this one still relevant?

@kylemcdonald

going to call this irrelevant with all the new windowing changes.

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