Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

AppDomain just like Winword

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shahzad Godil - 04 Jul 2006 07:16 GMT
I am able to keep same process for my different instance of my application
when we are launching "New Document" in our application using
AppDomain.CurrentDomain.ExecuteAssembly.  Only issue is that one instance is
running, on double click on exe in explorer, it is creating seperate process
of my application.

What I want just like Winword.  Either we do double click on application or
launch from code, it should run in same process.

Thanks
Shahzad Godil
Michael Nemtsev - 04 Jul 2006 18:58 GMT
Hello Shahzad,

The problem is that  AppDomain.CurrentDomain.ExecuteAssembly run specified
programm into default domain and you can't unload it without unloading all
app.
You need to run you app into separate domain, use AppDomainManager and AppDomain.Load
for this

SG> I am able to keep same process for my different instance of my
SG> application when we are launching "New Document" in our application
SG> using AppDomain.CurrentDomain.ExecuteAssembly.  Only issue is that
SG> one instance is running, on double click on exe in explorer, it is
SG> creating seperate process of my application.
SG>
SG> What I want just like Winword.  Either we do double click on
SG> application or launch from code, it should run in same process.
SG>
SG> Thanks
SG> Shahzad Godil
---
WBR,
Michael  Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.