Saturday, March 12, 2011

Multiple Processes

Source Code MultipleProcesses Project

Google Chrome uses a process for each tab. This way the crashed tab won't make the other tabs crash. This example application contains a child application called "ChildApplication.exe". This way you can put multiple child applications in your parent application.

The child application will be split from the parent application when the parent application crashes. Personally I think it would be hard to make the parent crash, because all it does is containing child applications.

I don't know for sure if the parent application is actually waiting for the child application to start first, because under the .NET Framework 2.0 the whole application wouldn't work. Only the child application would start. This is the reason why the application is using the .NET Framework 4.0.

To simulate a crash just create a button and put "throw new Exception();" in the button its click event.

Source Code MultipleProcesses Project

4 comments:

  1. thanks a a lot! Looking forward to more

    ReplyDelete
  2. You may want to actually show (in your post) how to include child applications ;D

    ReplyDelete
  3. good info mate. interesting to read

    ReplyDelete
  4. How is communication accomplished? That's a pretty major point.
    Also check out my gaming and programming blogs.

    ReplyDelete