To prevent database problems, I would like to avoid that 2 (or more) instances of my application are running at the same time.
So my question is:
How can I check if another instance is running and, if there is indeed, terminate the program. Note: only the "second" instance must be terminated of course.
Thank you in advance.