September 14, 20169 yr Commercial Member Well, maybe it isn't such an odd problem - ! :smile: My simconnect gauge works perfectly in both windowed and fullscreen mode, as long as FSX stays in either windowed or fullscreen mode. However, if I resize the FSX window, around thirty seconds later FSX crashes with either a BEX or an appcrash. Commenting out the simconnect gauge stops the crash, so the source is pretty obvious. I think I might have a problem with conflicting calls as during the window resize process PANEL_SERVICE_CONNECT is called before PANEL_SERVICE_DISCONNECT. Can anyone confirm that this might be the source of the problem? If so, is there a way of detecting a window resize call? While writing this, I've considered putting the simconnect gauge in an invisible window which is launched by the main panel as the invisible window would never be resized. Would that help? I don't have time to try it ATM, but I will tomorrow.
September 14, 20169 yr Dai, I gave up using PANEL_SERVICE_CONNECT_TO_WINDOW for just this reason. I usually put my SimConnect initialization and de-initialization routines in module_init and module_deinit. You could also try leaving your de-initialization routine in PANEL_SERVICE_DISCONNECT, making sure you set the value of the handle variable to zero. You would put your initialization routine in PANEL_SERVICE_PRE_UPDATE, wrapping it in an 'if' statement checking the handle variable against zero. Doug
September 14, 20169 yr Author Commercial Member Hello Doug Thanks for confirming that I had at least correctly identified the source of the problem and for providing two possible solutions. -Dai
Create an account or sign in to comment