Tech Off Thread

1 post

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

.NET 2.0 AppDomain CreateInstance'd object problems

Back to Forum: Tech Off
  • User profile image

    This is a problem I'm having with a program built with Express, but I don't want to add another false bug report to the product feedback page, so I'll ask here first.

    I'm creating another AppDomain and calling CreateInstance to get an object. For a while, things are kosher - calls on the object succeed as expected.

    But then if I leave the program running for a while, the object somehow gets disconnected and I get exceptions when I call methods on it.

    Is this normal behavior for cross-AppDomain same-process objects? Do I have to call something to reconnect the object, or will I have to blow it up and start over (which is going to be a problem - this object contains major program state, including forms).

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.