![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | DLL unloading automatically Hi, In my program, I load a DLL using Assembly.LoadFrom(). The program has no Reference added to the DLL. It is loaded dynamically. The DLL has a class with a static constructor. I can see that it executes when the assembly is loaded. However, after a few hours, the static constructor executes again. There is only one place in the program from which the Assembly is loaded and this does not happen in a loop. This makes me think that the assembly has got Unloaded somehow and has automatically been reloaded. In what circumstances is this possible? Is there any other explanation to the static constructor being executed twice? This is on .NET 3.0, C# Thanks, Yash |
My System Specs![]() |
| | #2 (permalink) |
| | Re: DLL unloading automatically Yash Ganthe wrote: Quote: > Hi, > > In my program, I load a DLL using Assembly.LoadFrom(). The program has > no Reference added to the DLL. It is loaded dynamically. The DLL has a > class with a static constructor. I can see that it executes when the > assembly is loaded. However, after a few hours, the static constructor > executes again. There is only one place in the program from which the > Assembly is loaded and this does not happen in a loop. > This makes me think that the assembly has got Unloaded somehow and has > automatically been reloaded. In what circumstances is this possible? > Is there any other explanation to the static constructor being > executed twice? > > This is on .NET 3.0, C# > > Thanks, > Yash might be called. -- Mike |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Automatically log on after Sleep | General Discussion | |||
| Automatically log on to network | Vista General | |||
| Automatically add contacts | Vista mail | |||
| contacts add automatically?!?! | Vista mail | |||
| Automatically "Automatically get new IP settings for the network adapter" | Vista networking & sharing | |||