Hello. I have created a plugin for mirc.

But I am now having some problems keeping it loaded.
I set the mKeep=true and in the UnloadDll call I return 0, if its timeout 1.

Somehow it still unload the dll totally random.
I have tryed to set a timer that make use of the dll on a regular basis, that seemed to help a bit, but unloading can still happen.

Have any of you had theese problems ? Could it be due to a violation in the plugin and mirc then unloads ?

Thanks, hope you have some suggestions.