appdomain Questions
3
Solved
I have a scenario in which I am adding DLLs to the GAC from actions in my C# code. I then need to do an Assembly.Load on the newly added DLL. However, since the DLL wasn't in the GAC when the proce...
1
Solved
I'm writing a plugin system to run client-provided untrusted code in my server application (C#, .NET 4.0). In order to do this, i'm running each plugin in a new sandboxed AppDomain.
However, I'm s...
1
Is there single GC Heap process wide partitioned in such a way that each Application Domain has access to specific partition ? Or each Application Domain has separate GC Heap? I am sure about the o...
1
Solved
Can anyone know what happening if we create two appdomains with the same friendly name?
static void Main(string[] args)
{
var myDomain = AppDomain.CreateDomain("mydomain");
var myDomain2 = App...
4
Solved
I have a process that can have multiple AppDomains. Each AppDomain collect some statistics. After a specified time, I want to accumulate these statistic and save them into a file.
One way to do t...
1
Solved
I'm trying to load a type from a different assembly (not known at build time) as 'dynamic' and execute a method on that type. My goal is to completely disconnect the 'plugin' from the parent applic...
1
I have a .net assembly with a method that is not verifiable.
I am trying to load this assembly in a sandbox appdomain.
If I load with skip verification, but not with Unmanaged I get a verificatio...
2
How do I make System.Timer callback on a separate threadpool, or on a dedicated thread?
Background
I have a lightweight monitor for a critical application using a System.Timer and can't figure ou...
Tristichous asked 17/5, 2012 at 20:14
1
Solved
I am getting "Unable to determine the identity of domain" when using System.IO.Packaging through COM Interop, there are a few articles describing why this is happening and the solution is to run th...
Marcellus asked 10/5, 2012 at 13:20
2
Solved
Please read the entire question. I have a unique situation with several constraints that I'd like to solve.
In my code I have an expression tree which is compiled to a Predicate<System.Type>...
Nicole asked 7/5, 2012 at 11:15
1
Solved
I have a working CLI interface between C++ and C# code. The code has a C++ abstract interface like:
-------------C++ Interface---------------
namespace cppns
{
class cppInterface
{
public:
vir...
Gondolier asked 24/4, 2012 at 16:7
3
Solved
I have a library that I use that uses WCF to call an http service to get settings. Normally the first call takes ~100 milliseconds and subsequent calls takes only a few milliseconds. But I have fou...
Lore asked 13/4, 2012 at 23:37
2
Solved
I have a C# plugin that uses a separate C++ DLL. The only reference to that DLL is from within the plugin itself. The parent application loads all plugins in their own AppDomain and unloads this Ap...
2
Solved
I have
public static class A
{
public static string ConnString;
}
[Serializable]
public class Test{
// Accesing A's field;
public string ConnString{get{return A.ConnString;}set{A.ConnString=va...
2
Solved
I want to ask a question to realize the difference between AppDomain and Activator, I loaded my dll via appdomain.CreateInstance. But I realized that more method to create instance. Therefore when ...
2
Solved
DirectoryCatalog scans the assemblies in a directory to determine what classes are imported/exported. Any assemblies without an import/export are not loaded.
This is an awesome feature, but how do...
Dunagan asked 26/2, 2012 at 21:20
2
I am writing a plugin architecture. My plugin dlls are located in a sub directory from where the plugin manager is running.
I am loading the plugins into a separate AppDomain as the following:
str...
Galacto asked 22/12, 2010 at 16:39
1
Solved
I am attempting to unload a misbehaving third-party DLL from my .NET process, as it seems to be causing a problem which is always resolved by restarting my application.
Rather than restarting the a...
1
Solved
We are building an app (WinForms, .NET 3.5) that loads "Plugin" DLLs into a secondary AppDomain. The secondary AppDomain needs to communicate occasionally with the 1st one (more specifically, call ...
Gregoriagregorian asked 23/1, 2012 at 13:26
2
Solved
Various sources explain that
When an object derives form MarshalByRefObject, an object reference
will be passed from one application domain to another rather than the
object itself. When an ob...
Wistful asked 7/1, 2012 at 22:57
2
Solved
I am building a .net C# console program to deploy file to a windows file share server (folder that is being shared). The path is :: \\192.168.0.76\htdocs\public
On running I am getting the error:...
Noisette asked 17/11, 2011 at 18:5
3
Solved
I'm creating a windows service that runs multiple threads.
Can I set the culture of my entire appDomain, instead of setting it to each thread separately?
Masterson asked 13/9, 2010 at 7:45
5
I have a static class which has some static data. What happens to the data if its accessed from different app domain?
Will there a copy of a static class for each domain?
Will the primitive type...
2
Solved
Ok, here is the deal:
I want to load a user defined Assembly into my AppDomain, but I only want to do so if the specified Assembly matches some requirements. In my case, it must have, among other ...
Ethnarch asked 27/10, 2011 at 16:57
1
Solved
Probably a copy of: Can I prevent an uncaught exception in another AppDomain from shutting down the application?
Been trying all day to figure out the answer to this question.
Just want to make s...
© 2022 - 2024 — McMap. All rights reserved.