Page 1 of 1

Plugin Sample - Warn upon exit

PostPosted: Wed Dec 24, 2014 10:01 am
by renes
The attached plugin is a sample which displays a warning message upon exit of Jiwa 7.

This plugin has been created in Version 7.00.64 and won't work on a earlier version that that.

If imported into a later version than 7.00.64 reference might need to be updated or deleted from the References tab.

Re: Plugin Sample - Warn upon exit

PostPosted: Wed Jan 27, 2016 10:56 am
by Scott.Pearce
Note that this plugin will cause the Jiwa 7 Plugin Scheduler Service to throw an error and fail to start.

This is because the plugin adds a handler to the MDIForm (the main Jiwa screen). The Jiwa 7 Plugin Scheduler Service is "headless" (has no UI), therefore MDIForm is nothing. This means that when the plugin attempts to add it's handler to MDIForm, which is nothing, it will error.

The easiest way to deal with this is to set the Exception Policy of this plugin to "Ignore". Alternatively, the code in the plugin could be modified to check that MDIForm is not nothing before adding a handler to it.