How stoped starting program two times? lazarus / 9-Editor ---------------------------------------------------------------------- Fortuna1 · 2007-12-18 10:37 Linux suse 10.0. fpc-2.2.0-0.i386.rpm lazarus-0.9.22-0.i386.rpm Thanks. ---------------------------------------------------------------------- antonio · 2007-12-18 13:14 Which program? ---------------------------------------------------------------------- Fortuna1 · 2007-12-18 19:46 Quote from: "antonio"Which program? My program write in Lazarus. ---------------------------------------------------------------------- antonio · 2007-12-18 20:33 What is happening with it? ---------------------------------------------------------------------- arnoldb · 2007-12-19 06:26 If you mean "how to stop your application from starting and running two times", see http://wiki.lazarus.freepascal.org/UniqueInstance ---------------------------------------------------------------------- Fortuna1 · 2007-12-19 21:46 Success (':D') UniqueInstanece wonderful working. Thanks very much  arnoldb! ---------------------------------------------------------------------- Fortuna1 · 2007-12-20 09:18 I install  UniqueInstance. Problem is : How  starting program? I try this: 1) I starting program and then I turn off  computer, without  close program. 2) I turn on computer and try runing  program. 3) Program not starting How starting program in these case. ---------------------------------------------------------------------- antonio · 2007-12-20 15:39 You can use UniqueInstance if you want to prevent your program to execute more than once. It will not execute twice or more at the same time. ---------------------------------------------------------------------- Fortuna1 · 2007-12-20 16:20 Quote from: "antonio"You can use UniqueInstance if you want to prevent your program to execute more than once. It will not execute twice or more at the same time. Yes, UniqueInstance prevent  execute more than once. But. if Turn off electricity betweeentimes  execute program and then restart computer. It will not execute once. UniqueInstance prevent  all execute; Program  stop and not execute. How execute program one times after reboot  computer. How reset  UniqueInstance prevent? Thanks. ---------------------------------------------------------------------- antonio · 2007-12-20 17:17 Wow, it seems that you found a bug somewhere!! I will try to do this you report. ---------------------------------------------------------------------- antonio · 2007-12-20 17:28 No, I can't reproduce this issue on Widows XP. ---------------------------------------------------------------------- pch · 2007-12-21 15:02 I also have this problem but on Linux only. The reason is simpleipc used by UniqueInstance create a pipe in /tmp/ . This file is not removed until you cleanly close the program. So if the program crash or if you cut the power you have to remove the file before you can start the program again. ---------------------------------------------------------------------- antonio · 2007-12-21 15:17 The author is Luiz Américo. You could send him a private message. ---------------------------------------------------------------------- Fortuna1 · 2007-12-21 20:46 Quote from: "pch"have to remove the file before you can start the program again. Yes, these is OK. Thanks. Quote from: "antonio" The author is Luiz Américo. You could send him a private message. Yes. I send message. Thanks. My best regards from Slovenia. ---------------------------------------------------------------------- bonmario · 2008-01-09 08:42 Quote from: "pch"I also have this problem but on Linux only. The reason is simpleipc used by UniqueInstance create a pipe in /tmp/ . This file is not removed until you cleanly close the program. So if the program crash or if you cut the power you have to remove the file before you can start the program again. Do you know wich is the name of this file? Thanks, Mario ---------------------------------------------------------------------- LuizAmérico · 2008-01-22 13:55 Sorry about the delayed response (i don't read private messages often). UniqueInstance uses SimpleIpc, a unit that comes in fpc. You found a bug (a serious one) in SimpleIPC. Just a question, do you turn off the computer by pushing the power button or using the OS shutdown option? ---------------------------------------------------------------------- Fortuna1 · 2008-01-23 22:42 Do you know wich is the name of this file? Yes. the name is    /tmp/tuni* rm /tmp/tuni* ---------------------------------------------------------------------- Fortuna1 · 2008-01-30 06:24 Quote from: "LuizAmérico" Just a question, do you turn off the computer by pushing the power button or using the OS shutdown option? I turn off the computer by pushing the power  button or. close  Konsole,  where programa runining. My best regards from Slovenia.