Hi Julen,
Since C# is garbage collected you might just set your reference to the dictionary to null so its memory can be collected.
You can return any non null String from the Initialize() method of the plugin if the initializer has detected an error condition and the plugin should deactivate itself.
It is good practice to hook the ProjectUnloading method to free resources when a project is closed.
The Deinitialize() method is called when articy:draft is closed, but once a plugin (and its assembly) is loaded it remains in memory and its instance might be reused. This behavior can be used to initialize static information only once.
There is a FatalExit method available but this will result in a crash packet and data loss if the data is not already saved and quits articy:draft
- Code: Select all
Articy.Utils.Manifests.ApplicationManifest.FatalExit( Exception aException )