Greetings Dan.

I had another contributor to this list help me with converting the Bome OneInstance component to use with Delphi 2010 and although it compiled, it was acting strange in that it would place multiple icons in the tray when calling a second and third time. So thanks for pointing me to this component. I already had the JVCL installed so it was a slam dunk to use it. Very nice component and it works as expected.

Thanks,
Mike

----- Original Message ----- From: "Dan Kloke" <dkl...@aol.com>
To: "Delphi-Talk Discussion List" <delphi-talk@elists.org>
Sent: Thursday, March 17, 2011 8:39 PM
Subject: Re: One Instance Component that support passing of parmeters


JVCL has a component like this called TJvAppInstances, I believe it's under Jv System. It supports passing command line parameters to the running instance.

"The TJvAppInstances component encapsulates the TJclAppInstance class. It allows you to control the number of application instances running at the same time. If a new instance is rejected it can send its command line and other commands to the first instance. To set a UniqueAppIdGuidStr you must call JclAppInst.JclAppInstances in the initialization section of a unit or before the forms are created (OnCreate is too late). This class is not thread safe."
http://wiki.delphi-jedi.org/wiki/JVCL_Help:TJvAppInstances
http://jvcl.delphi-jedi.org/

I use it, it works.

On 3/17/2011 9:52 AM, SoftTech wrote:
Greetings All,

I need a Delphi component that will allow only one instance of my application to be run.

I also need it to support passing in of parameters.

In other words, it does not matter if I'm running the app for the first time, or second or third. I will be passing it parameters that must be used each time the app is called.

In Delphi 5 I had a component called Bome TOneInstance that worked great as it had an event called OneInstanceStarted which was the event I could retrieve the parameters and process them accordingly. Bome TOneInstance is no longer supported at or even mentioned at www.bome.com

In Delphi 2010 I tried to install this same component and it errors out while compiling the code and I have no idea how it fix it, so looking for a replacement.

Please reply if you can assist in locating a replacement or have any suggestions on how to deal with this.

Thanks,
Mike
__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk
__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

--
MailScanner Virus/Spam/Malware: PASS (GZ)



__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

Reply via email to