vSMR
vSMR copied to clipboard
Parsing issues crashes EuroScope
An incorrect formated vSMR configuration file results in an error message followed by a crash of EuroScope. The displayed error message is suitable. However, the behaviour should be that the vSMR radar screen is not loaded (or closed again) and EuroScope keeps running. As the configuration is loaded upon the initialisation of a new vSMR radar display, the file can then be corrected (with ES still running) and then the vSMR display can be loaded properly. This issue is mainly related to debugging / editing configuration files. An undetected format error can occur quite quickly, and it's just annoying if the application has to be restarted. Such kind of plugin-design-based crashes should be prevented by the plugin itself.
I'll see what can be done
That’s a good point and that was my initial aim when I wrote this plugin a few years ago, however I remember struggling to achieve that with ES’s framework, it might be possible though. If I can I will take a look.
Sent with GitHawk
I was thinking of maybe doing a valid config check before the CPlugin object is passed to EuroScope, therefore not loading the plugin until the config is valid, though not sure if it's the best way to go about it..
@pierr3 I created some workaround with a default config. EuroScope & vSMR now load correctly without any customization. Nothing will be displayed beside the Topbar, the Inset and Euroscope.
You might also want to apply (a version) of my commit to insert the parsing Error into the MessageBox. #e92a7e7
Thanks so much @hpeter2, I will check it out and properly attribute the change to you if I implement!