JEDI Windows API – There is a design pattern called Singleton that usually applies only to classes. But imho it can also be applied to applications to prevent the user from starting several instances of the application. I came along this article on DelphiAboutCom which shows how to create a single instance application. Unfortunately it doesn’t work. What is going on? If you run this application a second time it seems to work. But if you close all applications and then try to rerun it you have a problem because Atoms are not deleted automatically. You have to call GlobalDeleteAtom for every GlobalAddAtom. ...
Visits by Source
Users who voted for this posting