We have one window to monitor the status of the simulation and another to visualize the simulation using glut. The simulation should run for days, but the visualization is not always neccesary, besides is CPU consuming.
The current implementation uses exit() on the glutMainLoop, glutMailLoopEvent and fgError. That causes the application to finalize; killing all other threads, days of simulation data could be lost because there is no chance of flush and someone could get a heart attack.
Is it possible to have nice return from the main loop instead of killing the application?
Log in to post a comment.