Is there a way to check how many instances are running? Like, I want to limit the program to only run 5 instances at most.
Currently I have to use an INI file to store number of instances that 're running and increase/decrease that number when a new instance runs/closes, it can be incorrect sometimes (when an instance closed without me knowing it), so I just hope there is a better way.
Thank you for reading