RE: Single instance of an object between different processes?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Essentially, you will need to host your singleton in either a stand-alone
exe, or a service. I would definately recommend remoting, as it is very
simple to use. If you use a stand-alone exe, you will obviously need to make
sure it is available when needed, and ensure only one instance of the exe is
running at any one time (using a mutex).

If you do not want to use remoting, you can use any number of other
interprocess communication protocols. Remoting in this instance is the most
suitable, IMHO.

HTH
Dan

"Elad" wrote:

> Hi,
>
> I have an application that is made up of several executables. I need all
> these executables to use the same instance of an object.
>
> What is the best, most efficient way to approach this?
>
> Thanks a lot!
>
>
>
.



Relevant Pages

  • Re: Compile .vbs files to .exe executables
    ... files to stand-alone executables. ... A script is interpreted code. ... An EXE is compiled. ... A stand-alone executable means one that doesn't need ...
    (microsoft.public.scripting.vbscript)
  • Re: Web Service Architecture Question
    ... Performance of remoting over TCP is typically much better. ... I also thought more about your "add a web service as an interface to the ... exe" question. ... > want to duplicate the server process code like ADO.NET etc in my web ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Automatisierung einer .net Anwendung
    ... > Wie bekommt man so was in einer .net Anwendung hin? ... > DLL zu schreiben und eine EXE zu schreiben, ... guck dir mal Remoting an. ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Remoting
    ... Remoting Konzept langsam aber sicher kurz vor dem Kollaps. ... Beim ersten Start einer EXE Datei ... Die Client Applikation ... das Serverobjekt. ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: run a stand alone app. from XP on a MAC
    ... I developed a stand-alone application on WIN XP. ... But the stand-alone matlab file (.exe) is not running. ... No. Executables created by MATLAB Compiler are platform-specific. ... to create an executable that will run on a Mac, you will need to compile it ...
    (comp.soft-sys.matlab)