Hi Cubic
I used CiaOnlyOne and then freed TCiaOnlyOne at the end of my OnShow routine 
and this seems to do
what I want.
Wayne

Borland's Delphi Discussion List <[email protected]> on Wednesday, 26 September 
2007 at 2:57 a.m.
+0000 wrote:
>> Wayne Roser wrote:
>> but I'm wondering if you really want to prevent multiple copies
>
>
>I am interested in this too.
>
>Maybe the best idea will be to allow two copies of the program when the 
>user manually started both of them (for example double click on the 
>desktop icon) and to close the rest of the copies if the program 
>automatically started when the user clicked a file that is associated 
>with the program.
>I think that checking the command line parameters when the application 
>start is enough to find out which case is running.
>
>But when one application is closed it must send the parameters to the 
>main application (the one that won't be closed).
>
>Anyway, maybe this is not the case for Rainer.
>
>
>Wayne Roser wrote:
>> Hi Rainer
>> I use TCiaOnlyOne but I'm wondering if you really want to prevent multiple 
>> copies or just prevent
>> "a bunch being opened all at once when the user doesn't want a bunch open". 
>> That's not something
>> I'm doing so far but I think I will implement that sometime soon.
>> Wayne
>>
>> Borland's Delphi Discussion List <[email protected]> on Monday, 24 September 
>> 2007 at 7:13 a.m.
>> +0000 wrote:
>>   
>>> What's the best (easiest effective) way to prevent multiple copies of a 
>>> single Delphi program from attemtping to execute simultaneously?
>>>
>>> The problem is that  users are double clicking to launch the program 
>>> (when Control Panel is configured for  single clicks), and then when 
>>> things aren't happening fast enough, they click twice again, and again, 
>>> and again, until there are 12 or more copies of the program trying to 
>>> launch ... and none of them are getting off the ground.  My users don't 
>>> seem able to learn patience, so I need to help them out.
>>>
>>> Any ideas?
>>>
>>> Thanks,
>>> Rainer
>>>
>>> _______________________________________________
>>> Delphi mailing list -> [email protected]
>>> http://www.elists.org/mailman/listinfo/delphi
>>>     
>>
>>
>> _______________________________________________
>> Delphi mailing list -> [email protected]
>> http://www.elists.org/mailman/listinfo/delphi
>>
>>   
>_______________________________________________
>Delphi mailing list -> [email protected]
>http://www.elists.org/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to