How to let the program run only one instance

How to let the program run only one instance?
Who can give me some hints? Thank you very much.

http://documentation.xojo.com/index.php/Mutex

Thank you !