appdomain Questions
1
We have a large .NET solution with both C# and C++/CLI projects which reference each other.
We also have several unit testing projects. We've recently upgraded from Visual Studio 2010 & .NET 4...
Mantling asked 1/8, 2013 at 11:38
1
Solved
I have looking at many threads about the exception "cannot pass a GCHandle across AppDomains" but I still don't get it....
I'm working with an RFID Reader which is driven by a DLL. I don't have so...
1
Solved
How can I create an appdomain, add assemblies to it, then destroy that app domain? This is what I have tried:
static void Main(string[] args)
{
string pathToExe = @"A:\Users\Tono\Desktop\Conso...
Florinda asked 20/6, 2013 at 23:4
1
Until recently I was loading my assembly by calling Assembly.LoadFrom and it was ok. But now I need to load it in a temporary appDomain but I keep having a FileLoadException when trying to load the...
Difficile asked 10/6, 2013 at 9:5
1
Solved
Ok so... I have a WPF application (let's call it Launcher.exe) which loads and executes another WPF application (let's call it Loaded.exe) dynamically using something like this:
Byte[] assemblyDat...
Outcross asked 26/5, 2013 at 3:9
1
My app needs to load plugins into separate app domains and then execute some code inside of them asynchronously. I've written some code to wrap Task in marshallable types:
static class RemoteTask
...
Duly asked 28/2, 2013 at 18:5
1
Solved
Please consider the following piece of code:
// Create a new application domain
AppDomain ad = AppDomain.CreateDomain("New domain");
Worker work = new Worker();
// if Worker class is marked as '...
Sunshinesunspot asked 16/5, 2013 at 9:1
3
Solved
I'm using c# 4.0 and a console application just for testing, the following code does gives an exception.
AppDomainSetup appSetup = new AppDomainSetup()
{
ApplicationName = "PluginsDomain",
Appli...
Delmadelmar asked 8/7, 2011 at 15:21
1
I'm trying to make application with plugins.
I have MainLib.dll, where I made some commnon interface(let it be ICommon) with 1 method. Then, I made 2 .dlls(plugins) which have reference to M...
Offset asked 4/5, 2013 at 23:56
1
Solved
I am trying to load an assembly A in a new AppDomain in my console application with same base directory and RelativePath as the default domain.
When I create a type from A using CreateInstanceFrom...
Anchylose asked 8/4, 2013 at 15:28
2
Solved
A) compiling C# EXE's and DLL's on the fly are relatively easy.
B) Executing an EXE means that a new application is run. Loading a DLL means that methods and functions can be used in cases that may...
Archlute asked 4/4, 2013 at 15:23
1
Solved
I'm trying to use .NET 4.5's new regular expression match timeout, specifically the global variant via AppDomain.CurrentDomain.SetData with the "REGEX_DEFAULT_MATCH_TIMEOUT" property (the variant w...
Goingson asked 1/4, 2013 at 10:49
3
Solved
My original belief about Environment.Exit was this:
If called from the default AppDomain, the process would terminate.
If called from an AppDomain other than default, the AppDomain would terminat...
1
Solved
I am using singleton pattern to load some configurations which are in database. If I add some new configurations in database and restart the webservice then it doesn't load those settings. For this...
Uptotheminute asked 23/2, 2013 at 4:28
2
Solved
I need to 'scan' the active AppDomain for all loaded assemblies at run time and get a list of unique namespaces available in those assemblies, does .NET support that?
The code must execute during ...
Inaugural asked 20/2, 2013 at 9:39
4
Solved
I want to exceute some piece of code in separate AppDomain with delegate. How can I do this?
UPD1: some more details about my problem
My program processing some data (one iteration is: get some da...
3
Solved
Here's the core problem: I have a .NET application that is using COM interop in a separate AppDomain. The COM stuff seems to be loading assemblies back into the default domain, rather than the AppD...
Faldstool asked 28/10, 2008 at 6:25
1
I am loading all DLLs from a specific "extensions" directory in a new AppDomain to get some Reflection related information out of those.
This is what I'm trying:
I created a new library AssemblyP...
1
Solved
I've been trying to dynamically load an assembly to an AppDomain. I need to do it because I want to call a method dynamically, but don't keep the handle to the DLL while my app is running, so that ...
3
A short explanation of why I want to do this:
I am busy writing a plugin for Autodesk Revit Architecture 2010. Testing my plugin code is extremly cumbersome, as I have to restart Autodesk for each...
1
I'm using an AppDomain in order to load assemblies and then unload them.
However, I'm having a very strage problem. After the AppDomain is unloaded - I can still see in process explorer that some ...
Porky asked 18/11, 2012 at 12:21
2
Solved
I receive this error in a windows service.
This is the same service that I've previously discussed in my question here
The code is revised to use Parallel.ForEach (my own version as this is a 3.5 ...
1
Solved
The following sample is based on "Passing values back and forth appdomains", where Marc Gravell kindly provided a very good answer to a question about .Net remoting between appdomains. What I've do...
4
Solved
I am working on a project that will use CodeDOM to create a class that evaluates a user-defined expression, creates an assembly for the class, and loads the assembly. Since there can be a fair numb...
3
I am trying to stop my application locking DLLs in my MEF plugin directory so that I can overwrite the assemblies at runtime (note I'm not actually trying to have MEF reload them on the fly, at the...
Gastronome asked 26/9, 2012 at 1:22
© 2022 - 2024 — McMap. All rights reserved.