Wiki copymirror

This is a mirror of the wiki at pascal.chat. Editing, history and sign-in are there.

UniqueInstance

Deutsch · English · Español · Français · Polski

Description

About

UniqueInstance provides an easy way to force only one instance per application running at same time. To install this component on your component palette, the easiest way is to use the Lazarus Online Package Manager. Supports Windows and Linux (macOS prevents multiple instances by default).

Features

How To Use (Component)

Just drop in the main form of a LCL application (it's on the System tab, look for a red full-circle with the digit "1" in the middle).

Properties:

Event

How To Use (Raw)

Add uniqueinstanceraw unit to your uses section.

Call the InstanceRunning function: it will return true if there's already a instance running.

There are two variants:

Remarks

History

Author

Luiz Américo Pereira Câmara

License

Modified LGPL

Download

Version 1.1: Download from GitHub

Recent development moved to GitHub repository: https://github.com/blikblum/luipack/tree/master/uniqueinstance

You can use SVN client:

text
 svn co https://github.com/blikblum/luipack.git/trunk/uniqueinstance

See also


From the Free Pascal wiki, page "UniqueInstance", as it stood on 2020-06-18 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 2, last changed by WikiArchive .