Stopping a Delphi application from having too many instances.
Every single developer wishes to have their client start up only a single instance of their application. This reduces the amount of possible application issues if the code makes a database connection or does some sort of processing that takes away the machine resources. The following code snippet will help Delphi programmers to keep the process count down to a single instance. This was coded using Rad Studio XE8 Delphi and is used in many of my applications. The code will be embedded in the project's source because it has to occur prior to the application creating the main form. Click on the menu Project / View Source or using the project manager, you can right click and upon getting the pop-up, you can select view source as…