MDI and Reflection

J

John

Hello All,

I've created an MDI application that loads child forms via reflection. It
works well.

What I'd like to do is possibly use an AppDomain to load and unload these
forms for versioning purposes. I've searched high and low for this on the
internet and from what I've read I'm not sure this can be done?

Is it possible to load a child form into an MDI through a separate
AppDomain, then unload the AppDomain so a new version of the child
form/assembly can be loaded? If anyone has any sample code that demostrates
this, I'd REALLY appreciate the assistance!!

Thank you in advance for the help!
John
 
P

Peter Duniho

John said:
Hello All,

I've created an MDI application that loads child forms via reflection. It
works well.

What I'd like to do is possibly use an AppDomain to load and unload these
forms for versioning purposes. I've searched high and low for this on the
internet and from what I've read I'm not sure this can be done?

Is it possible to load a child form into an MDI through a separate
AppDomain, then unload the AppDomain so a new version of the child
form/assembly can be loaded? If anyone has any sample code that demostrates
this, I'd REALLY appreciate the assistance!!

I haven't done much with AppDomains. But I believe that because of the
restrictions of data sharing between AppDomains, an MDI parent (or any
Control instance, for that matter) and its children all have to be
instances in the same AppDomain.

If you can put the parent in the necessary AppDomain, then I think that
should work.

Pete
 
T

Tangun Caner

i know it's too late but may i see an example of your "MDI application that loads child forms via reflection" does it loads mdichild's from dll's? could you upload your example or referance a example to me? Thanks already now..



John wrote:

MDI and Reflection
22-Jan-10

Hello All

I have created an MDI application that loads child forms via reflection. I
works well

What I'd like to do is possibly use an AppDomain to load and unload thes
forms for versioning purposes. I have searched high and low for this on th
internet and from what I have read I am not sure this can be done

Is it possible to load a child form into an MDI through a separat
AppDomain, then unload the AppDomain so a new version of the chil
form/assembly can be loaded? If anyone has any sample code that demostrate
this, I'd REALLY appreciate the assistance!

Thank you in advance for the help
John

Previous Posts In This Thread:

MDI and Reflection
Hello All

I have created an MDI application that loads child forms via reflection. I
works well

What I'd like to do is possibly use an AppDomain to load and unload thes
forms for versioning purposes. I have searched high and low for this on th
internet and from what I have read I am not sure this can be done

Is it possible to load a child form into an MDI through a separat
AppDomain, then unload the AppDomain so a new version of the chil
form/assembly can be loaded? If anyone has any sample code that demostrate
this, I'd REALLY appreciate the assistance!

Thank you in advance for the help
John

John wrote:I have not done much with AppDomains.
John wrote

I have not done much with AppDomains. But I believe that because of th
restrictions of data sharing between AppDomains, an MDI parent (or an
Control instance, for that matter) and its children all have to b
instances in the same AppDomain

If you can put the parent in the necessary AppDomain, then I think tha
should work

Pete


Submitted via EggHeadCafe - Software Developer Portal of Choice
BizTalk: Parallel Processing with Correlation
http://www.eggheadcafe.com/tutorial...alk-parallel-processing-with-correlation.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top