-K2RFP- wrote:
I'm using a Mutex to prevent running multiple
instances of a program. However, sometimes while
running the program I want to run a second instance
by setting a checkbox to allow that to happen.

How do I code the program to do that?

I don't know the specific coding, but...

In the OnClick handler for the checkbox, check if the checkbox state indicates if multiple instances can run. Call ReleaseMutex if the checkbox state indicates yes. Create the mutex if the state indicates no.

That way the mutex will not exist when the second instance starts.

--
Doug C.
-----
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

Reply via email to