I have a large application, with many dynamic parts/panels/widgets. Upon stress-testing, The GUI goes blank. I doubt that the GUI thread is bombarded with events from other threads.
I have disabled all the events that I doubted, but it still goes blank. So is there like a global handler or logger to log all the events that occur in the wxWidgets main loop ?
N.B: I have around 1000 threads.
In your application class override FilterEvent. You can do whatever logging you need in your derived method, but be sure to return -1 to allow the events to be processed as they normally would.