Detect multiple instances of a plugin


#1

Hi.

If I want to prevent multiple instances of my plugin, what is the best way to achieve that?

Thanks


#2

InterProcessLock ?


#3

That won’t help in this case cause the host loads all plugins with the same process.


#4

Why not just have a static int that counts the number of active plugins…?


#5

That will do the trick… Thanks!