Questions tagged [applicationdomain]
69 questions
4
votes
1 answer
RSL, LoaderContext and ApplicationDomain. Can I pass an application Domain to an RSL?
So, I've a few libraries that I'm loading as RSL's to my project.
I do this in Flash Professional, since it's the easiest way to give your RSL's to your project with fallback.
I'm loading other swf's into my main swf via Loader and I NEED to give…

GV3
- 491
- 3
- 16
3
votes
1 answer
How do I use AppDomain.CreateDomain with AssemblyResolve?
I want to load my assemblies from WCF by using memory. Everything is working good WHEN:
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
Assembly[] assBefore =…

loki
- 2,926
- 8
- 62
- 115
3
votes
1 answer
Replace AppDomain.CreateDomain in .Net Core
I am trying to migrate to .Net 5, where app domains are not supported anymore.
I used Application Domains in .Net Framework to launch multiple WPF tests without them interacting with each other.
var appDomain = AppDomain.CreateDomain("Friendly…

Purple Haze
- 530
- 7
- 22
3
votes
1 answer
Actionscript 3 loading external swf casting issue
I'm having something of an issue with trying to load externally defined classes in actionscript 3.0. I believe this to be an issue with my understanding of the ApplicationDomain / LoaderContext classes, but even after going over the documentation…

user432437
- 33
- 3
3
votes
1 answer
flash.utils.getDefinitionByName vs. ApplicationDomain's class definition methods
What's the difference between these two method groups in terms of the set of classes they work with (i.e. ApplicationDomain's class definition set vs the set of class definitions getDefinitionByName uses)?
ApplicationDomain. getDefinition /…

Triynko
- 18,766
- 21
- 107
- 173
3
votes
4 answers
Get Assembly Names in Current Application Domain
I want to get Assemblies Friendly Names in Current Application Domain and hence I wrote something like this :
static void Main(string[] args)
{
foreach (System.Reflection.Assembly item in AppDomain.CurrentDomain.GetAssemblies())
…

Tarik
- 79,711
- 83
- 236
- 349
2
votes
1 answer
Loading An Assembly Into An Application Domain With Lower Security
I'm trying to create a Sandbox App Domain that has read only access to the file system. The code I have written to do this is
var ps = new PermissionSet(PermissionState.None);
ps.AddPermission(new…

Gavin
- 17,053
- 19
- 64
- 110
2
votes
2 answers
Create Plugins in Flex - loading nested SWF files
I'm trying to implement a plugin system for our application, and having a devil of a time getting SWF file which was dynamically loaded itself, load additional SWF files.
It goes something like this:
Main Application Shell loads...
---------+…

Phil
- 851
- 6
- 9
2
votes
4 answers
Share Classes between Parent and Child SWF
So i have a situation where i want to pass a object of a class say 'MyBigAwesomeClass' from a child to a parent. I import the class definition into both the parent and child.
Now, if i load the child swf from a location that is relative to the…

Khalid Bajwa
- 173
- 3
- 11
2
votes
0 answers
Can't load assembly generated with code in a new Application Domain
I have an asp.net application, which generates assemblies on the fly from user scripts.
It's all working good, but now I want to run the assembly in a SandBox application domain with reduced permissions.
When I load the assembly in a new application…

alfoks
- 4,324
- 4
- 29
- 44
2
votes
2 answers
application domains and threads
A quote from MSDN: http://msdn.microsoft.com/en-us/library/6kac2kdh.aspx
One or more managed threads
(represented by
System.Threading.Thread) can run in
one or any number of application
domains within the same managed
process. Although…

Michael Piendl
- 2,864
- 1
- 27
- 21
2
votes
1 answer
How can Application Domains be used to host 3rd party assemblies that provide UI controls in a Web or Windows app?
MSDN says:
Isolating applications is also important for application security. For example, you can run controls from several Web applications in a single browser process in such a way that the controls cannot access each other's data and…

richard
- 12,263
- 23
- 95
- 151
2
votes
3 answers
Does Silverlight use a separate application domain for each browser tab?
If the same Silverlight application is running in two web browser tabs, does each tab use a separate application domain?
If you know where Microsoft explicitly provides this information, please include a reference.
Nobody Important
2
votes
1 answer
Is it possible to unload assemblies or types from a Process ?
Well ,my question is a short question, What i want to know is just
Is that it supported to unload assemblies or types from a process ?
I don't need any code examples for this , I just need a short answer,
Any help will be apreciated!

user3011681
- 35
- 3
2
votes
1 answer
Catch exception and properly handle program when it crashes
AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
Forms.Application.ThreadException +=
new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
was…

pl0xtic
- 33
- 1
- 3