[Gambas-user] donot permit another instance of my program

Hans Lehmann hans at gambas-buch.de
Thu May 31 12:08:43 CEST 2018


Hello.

Supplement:
This solution is suitable for the variant with the lock file:

Static Public Sub Application_Error()

   If Exist(Application.Path &/ ".lock.file") Then Kill Application.Path 
&/ ".lock.file"
   Wait

End


Hans


More information about the User mailing list