Proramming LCL : uniqueinstance component creation lazarus / 31-LCL ---------------------------------------------------------------------- MikeFinch · 2021-01-01 05:47 I am trying to create a uniqueinstance LCL component (under the System tab?), using the wiki.freepascal.org/install_Packages as a guide. When compilation is attempted (Adding new packages : Use>>Install) my system stalls at line 18,56 : Error:Identifier not found "Register". Why is this so? I wish to use the component to prevent any duplication of a starting form/window for my program (because my program can be recalled once or more if the user so wishes). Otherwise my program is working fine in Linux but I have yet to battle with Windows (using mutex?) to get my .exe file to work properly. Hope someone can help me with this problem.  MFCode: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  [/size] ---------------------------------------------------------------------- Roland57 · 2021-01-01 05:58 Hello! I don't know why you get this error, but for your information there is a unique instance component here. Regards. Roland ---------------------------------------------------------------------- jamie · 2021-01-01 13:20 For windows I simply use the FindWindow using the Class name "Window" and test against the Caption Text etc.. There are other ways to make it even better of course, you can have your window respond to a specific message using SendMessage when you think you have found the magic window and if you return that message in your app with a specific value then you know your app is living already and you simply send a show window to that newly found window and exit the current attempt.