Click here to Skip to main content
16,005,080 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Problem in Problem in Mobile Incoming call detected(Dave Kreskowiak) Pin
Rupesh Kumar Swami28-Aug-07 21:36
Rupesh Kumar Swami28-Aug-07 21:36 
AnswerRe: Problem in Problem in Mobile Incoming call detected(Dave Kreskowiak) Pin
Vasudevan Deepak Kumar29-Aug-07 3:23
Vasudevan Deepak Kumar29-Aug-07 3:23 
AnswerRe: Problem in Problem in Mobile Incoming call detected(Dave Kreskowiak) Pin
Dave Kreskowiak29-Aug-07 4:07
mveDave Kreskowiak29-Aug-07 4:07 
Questionhow to load and unload dll or plugin Pin
rattlesnake31628-Aug-07 15:27
rattlesnake31628-Aug-07 15:27 
AnswerRe: how to load and unload dll or plugin Pin
Dave Kreskowiak28-Aug-07 17:25
mveDave Kreskowiak28-Aug-07 17:25 
GeneralRe: how to load and unload dll or plugin Pin
rattlesnake3162-Sep-07 17:22
rattlesnake3162-Sep-07 17:22 
GeneralRe: how to load and unload dll or plugin Pin
Dave Kreskowiak3-Sep-07 4:33
mveDave Kreskowiak3-Sep-07 4:33 
AnswerRe: how to load and unload dll or plugin Pin
originSH28-Aug-07 23:36
originSH28-Aug-07 23:36 
Theres generally 2 ways of loading plugins, either into the current AppDomain or in to a new AppDomain.

The only way to unload an assembly is to unload the entire AppDomain, so if you require unloading of plugins you need a new AppDomain. This doesn't come for free however as serialization has to take place on any objects passing over AppDomain boundries and so incures a performance penalty.

If you load into the current AppDomain then things will run at full speed but as you have found you cannot unload the assembly.

If your application rarely changes plugins or is often restarted there is very little to gain from using a seperate AppDomain. And so conversly if the app is long running (and so is vunerable to a build up of assemblies) or has a large number of plugin changes then it might be worth taking the hit to allow cleaning up of the assemblies.

Personally I wouldn't bother about the unloading unless there is a real need for it ... it would be nice but it's not essential and you can always remove the plugins from use, you just can't remove them from memory.

One final note, the seperate AppDomain structure does have one bug advantage when running untrusted plugins. It allows you to place a different set of security restrictions on the code and keep it away from your own code to enhance security and stability. Basically it can be used as a sandbox.
QuestionVisual Studio 2008 [modified] Pin
ASPnoob28-Aug-07 14:37
ASPnoob28-Aug-07 14:37 
AnswerRe: Visual Studio 2008 Pin
Dave Kreskowiak28-Aug-07 14:48
mveDave Kreskowiak28-Aug-07 14:48 
GeneralRe: Visual Studio 2008 Pin
ASPnoob28-Aug-07 15:09
ASPnoob28-Aug-07 15:09 
GeneralRe: Visual Studio 2008 Pin
Christian Graus28-Aug-07 15:13
protectorChristian Graus28-Aug-07 15:13 
GeneralRe: Visual Studio 2008 Pin
Dave Kreskowiak28-Aug-07 17:24
mveDave Kreskowiak28-Aug-07 17:24 
GeneralRe: Visual Studio 2008 [modified] Pin
ASPnoob28-Aug-07 18:00
ASPnoob28-Aug-07 18:00 
GeneralRe: Visual Studio 2008 Pin
Christian Graus28-Aug-07 18:07
protectorChristian Graus28-Aug-07 18:07 
QuestionSlow Paint Events - vb.net 2005 Pin
nlarson1128-Aug-07 8:42
nlarson1128-Aug-07 8:42 
AnswerRe: Slow Paint Events - vb.net 2005 Pin
Luc Pattyn28-Aug-07 12:36
sitebuilderLuc Pattyn28-Aug-07 12:36 
GeneralRe: Slow Paint Events - vb.net 2005 Pin
nlarson1128-Aug-07 13:02
nlarson1128-Aug-07 13:02 
GeneralRe: Slow Paint Events - vb.net 2005 Pin
Luc Pattyn28-Aug-07 13:23
sitebuilderLuc Pattyn28-Aug-07 13:23 
GeneralRe: Slow Paint Events - vb.net 2005 Pin
Dave Kreskowiak28-Aug-07 14:33
mveDave Kreskowiak28-Aug-07 14:33 
GeneralRe: Slow Paint Events - vb.net 2005 Pin
Christian Graus28-Aug-07 15:14
protectorChristian Graus28-Aug-07 15:14 
GeneralRe: Slow Paint Events - vb.net 2005 Pin
nlarson1128-Aug-07 15:38
nlarson1128-Aug-07 15:38 
GeneralRe: Slow Paint Events - vb.net 2005 Pin
Dave Kreskowiak28-Aug-07 17:22
mveDave Kreskowiak28-Aug-07 17:22 
QuestionHelp needed Pin
chintuu128-Aug-07 7:47
chintuu128-Aug-07 7:47 
AnswerRe: Help needed Pin
Dave Kreskowiak28-Aug-07 14:36
mveDave Kreskowiak28-Aug-07 14:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.