Re: background instance..

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



kiran.inbng@xxxxxxxxx wrote:
Hi All,

I have some problem sharing data between two instances of same
application.Below is the design and the problem.

The requirement is to have one single application running in the
background and with one or many UI windows in the foreground.

Currently iam thinking of using the mutex method to restrict to one
instance of the exe.But the problem is everytime the instance of the
exe can launched with different command line parameters.So based on the
parameters i have to either create a dialog(which can again launch the
UI Windows) or directly create some UI windows.First question is how
can i share the command line info of the new instance of the exe with
the existing one.Secondly is there any better method of handling this
situation(currently the UI windows are on different threads).

Please provide some inputs.

Thanks,
kiran


In this case "background job to DLL and forground jobs to EXE" seems
to fit exactly with your need.

muchan


.



Relevant Pages

  • Re: Need an advice with this (multithread)
    ... be collected by the garbage collector before they've completed. ... An EXE is ... Windows Services ... >> I suggest you have ASP.NET launch an EXE to do this or queue up a windows ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Image viewing - a different approach
    ... it's a method for platform-independent "launch" ... as every Windows user has his desktop filled with. ... Such way we don't have to care about file type, launch command and other ...
    (comp.lang.tcl)
  • Re: Need an advice with this (multithread)
    ... > I suggest you have ASP.NET launch an EXE to do this or queue up a windows ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Simulate drag and drop from code
    ... The 3rd party software provider said to launch the program ... When I try this from the command prompt I get the same error. ... Windows *may* be trying to use DDE to send the name of the new file to it. ...
    (microsoft.public.vb.general.discussion)
  • Re: While debugging I get an error
    ... Windows Embedded Consultant ... Then I launch the assembly from the device and from VS2005 use Debug>Attach ... I had an app. ... that there might be something wrong with the deployed exe. ...
    (microsoft.public.dotnet.framework.compactframework)