How to check if there is any instance of a class at runtime?
<p>Is there any method to check whether any instance of a class is running?</p>

<p>I have a GUI and I don't want open another instance of it, if a one is already running.
I know about including a counter in constructor. Any method except that? </p>

<p>Thanks in advance!!</p>
