Launching a second Application

Hi,

I am trying to use the example in Launching Applications and Resuming Processes

The example uses "Calc.exe" as the second process.

When I replace Calc.exe with another process, I get into problems.

The problem is that the first process hangs and the second does not load.

Killing the first process brings up the second one. So it seems like the second process was waiting for something the first one is holding.

Both processes are .NET applications written in VB.NET 2003

OS is Windows Mobile 2003 Second Edition

Thanks

 

Update: After trying with code and running several applications I found that the problem occurs If the second application is a .NET application.

Sounds like a limitation in the CF



Answer this question

Launching a second Application

  • EWOOD

    I haven't ever seen this problem. If both applications are managed, however, you should try using the System.AppDomain.ExecuteAssembly() method. If you want the second exe to be in a separate application domain, you can create a new AppDomain and call ExecuteAssembly() to start it in a separate application domain within the same win32 process.

    HTH,
    --Jeff


  • tee_user5

    I've had multiple C# applications running within CF, with one instantiated by a Process.Start call from the first. I've had no problems with anything freezing, hanging, or otherwise not executing as expected. Try, for grins and giggles, throwing the process start call into a new thread.
  • Launching a second Application