Actually I have some strange problems with continuing develop my plugins.
Example #1:
[ul]
[li]I open a csv-file with my csv-viewer -> DVP_CreateViewer will be called -> An instance of my csv-viewer will be created[/li]
[li]I close the csv-viewer -> I will get an DVPLUGINMSG_CLEAR-Message. This is the signal for me, to free all used resources and the plugin-instance itself.[/li][/ul]
Everythink works fine.
Example #2:
[ul]
[li]I open a csv-file with my viewer -> DVP_CreateViewer will be called -> An instance of my csv-viewer will be created[/li]
[li]I do not close my csv-viewer and switch to a jpeg-file. I would not get the DVPLUGINMSG_CLEAR-Message! I have no signal to free my resources not to mention the instance itself![/li]
[li]I switch to a csv-file. A second instance of my cvs-viewer will be created........[/li][/ul]
The result: some exceptions when closing DOpus because the first instance has not been killed.
I have no chance to free resources, when the user switches to another filetype without closing my viewer first
Any ideas?