Link to home
Start Free TrialLog in
Avatar of p0yang01
p0yang01

asked on

How to run at most one instance at a time?

How can i modify the original MDI template so that at most one instance can be run simutaneously?
ASKER CERTIFIED SOLUTION
Avatar of prasanth
prasanth

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of danny_pav
danny_pav

create a shared segment and that will have data from all instances of the app.  Use InterLockedIncrement/Dec to modify counters in the shared segment