4
votes
Vote UpVote

Application Singleton

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. ...
Favorite? Off-Topic? Christian Wimmer @ 2009-10-26 07:00

Statistics

Visits: 573
Votes: 4
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Charles Ardour
Neville Cook
stukelly
Tier777
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)