473,386 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

activator and using dll assembly

hi.
im creating object from assembly dll.
after im finish using the object ,
the process is still using the assembly dll.
what i need to do to the object , so the process will not use the dll , and
by that , i could compile the dll again (after changing code, while the win
app process is still running ..)

hope im clear.
have a nice day.
Jul 19 '05 #1
1 2013
Daylor,
Once an Assembly (DLL) is loaded in an AppDomain, the Assembly is loaded in
that AppDomain.

I understand that you need to create a new AppDomain which you load the
Assembly in, then when you are done delete the new AppDomain. At least this
is the way I understand that NUnit does it. Unfortunately I do not have a
sample of how to do this.

Also I believe you can use the AppDomain.ShadowCopyFiles to cause a copy of
the Assembly to be loaded. At least this is the way I understand that
ASP.NET does it. Again I do not have a sample.

I believe the ShadowCopyFiles may be the easier method.

Hope this helps
Jay

"Daylor" <Da****@012.net.il> wrote in message
news:3f********@news.012.net.il...
hi.
im creating object from assembly dll.
after im finish using the object ,
the process is still using the assembly dll.
what i need to do to the object , so the process will not use the dll , and by that , i could compile the dll again (after changing code, while the win app process is still running ..)

hope im clear.
have a nice day.

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stephane D. | last post by:
I have currently an issue with the following piece of code. The assembly is to run under com+ (as Library) and the class derives from ServicedComponent. Code: C# - .NET framework V1.1.4322 //...
4
by: Terry | last post by:
I'm building some dll assemblies that have in them the implementation of an abstract class defined in a different assembly. I'm trying to create objects of the type defined in the dlls with...
3
by: Guy | last post by:
im running some code to instantiate a form, based on the name selected at runtime. Im using System.Activator.CreateInstance to load a form by its fully typed name, here is the code.... string...
4
by: CKR Rajesh | last post by:
Hi, I have 2 dlls on which i have the same class MyClass defined. Say A.dll and B.dll The classes have a function (but different functionality) void f(); I use .Net late binding using...
7
by: hazz | last post by:
this is a repost with more concise code (well, for me) and better questions (I hope....) . given the following two classes, my intent is to use either Activator.CreateInstance or InvokeMember pass...
2
by: KK | last post by:
Hi All I need to create a windows form control(from System.Windows.Forms.dll assembly) dynamically using Activator.How do I achieve this?Sample code is much more helpful. Thanks in advance ...
3
by: Wayne | last post by:
If I wanted to create an instance of a System.Windows.Forms.Button how would I go about doing this? I know if I specify the path to the DLL as the first param, and the qualified name as the second...
3
by: System.Reflection Activator | last post by:
************************************** //Load the Assembly Assembly a = Assembly.LoadFrom(sAssembly); //Get Types so we can Identify the Interface. Type mytypes = a.GetTypes(); BindingFlags...
5
by: ismail.mayat | last post by:
Hello, I am having a problem with Activator.CreateInstance. I have the following code Assembly asm = System.Reflection.Assembly.LoadFrom(assembly); if(asm!=null) { try {
0
by: Jon Skeet [C# MVP] | last post by:
On Apr 11, 8:40 am, Andrew <And...@discussions.microsoft.comwrote: Okay, that means you've either not given the full classname (including namespace) or it's not in mscorlib or the currently...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.