My Flash (AS3/AIR) application is currently using a slightly unusual architecture (for a Flash app) to provide particular base classes for loaded content at runtime. The external content is published with 'stub' base classes, which are eclipsed by the 'real' base classes at runtime when it is loaded. I've heard this referred to by Adobe ...
Howdy,
I have an assembly that may be used by more than one process at a time. If I am using a static class, would the multiple processes all use the same "instance" of that class?
Since the processes are separate, would these be running under difference Application Domains, hence have the static "instances" separate?
The pudding...
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.
...
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 each application
domain is started with a single
thread, code in that application
d...
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...
---------+ Application loads...
-----------------+Plugin(s)
I have no problem getting app #1 to load a...
I'm reading this book on C# and .NET and I'm learning a bunch of cool stuff. I've read the part where the author talks about dynamically loading an assembly and creating an instance of a type in that assembly.
In AS3, it's possible to do the same kind of stuff, except for one thing : you can ask the compiler to not compile a set of cla...
So here's an example of what I'm wanting to do:
Run test.exe, new Windows process is created, new CLR Application Domain is created, new CLR process is created.
Run test.exe, new Windows process is created, realizes CLR Application Domain exists, restarts CLR process in the first CLR Application Domain and closes with Windows process.
2...
I have a parent SWF file that defines a Widget base class.
I then load an external SWF into the parent. The external SWF's document class derives from the Widget base class -- let's call it DerivedWidget for example.
The problem is that when I load the external SWF, I cannot cast the Loader.content (shows in debugger as having the Der...
I'm trying to load a swf compiled by the Flex SDK into a swf exported by the Flash IDE and instantiate the assets by way of getDefinition(). Normally this works fine with assets exported from the Flash IDE then loaded into another swf also from Flash IDE.
This is how I could normally do this using only the Flash IDE:
Loader - > Using sa...
I have a Flex application that can load modules as necessary. When the first module is loaded, it creates a class MyBackground(), which paints the background red. When I choose to load a second module (and unload the first) I again load a class MyBackground (from the second module). However, when I step into the constructor for MyBackgro...
When I perform a AppDomain.Unload(myDomain) I expect it to also do a full garbage collection.
According to Jeffrey Richter in "CLR via C#" he says that during an AppDomain.Unload:
"The CLR forces a garbage collection to occur, reclaiming the memory used by any objects
that were created by the now unloaded AppDomain. The Finalize method...
Hi.
I'm trying to launch a WPF application from a Console application, using Application Domains,
but when I do, I receive unexpected errors.
Running the WPF application standalone, works.
This code works, too:
var baseDirectory = AppDomain.CurrentDomain.BaseDirectory;
var path = string.Format("{0}AddressbookDesktop.exe", baseDirecto...
Hi all, 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 and a couple of web searches I'm still stuck.
Essentially what I want to do is load...
In AS3, what is ApplicationDomain.domainMemory for?
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/system/ApplicationDomain.html#domainMemory
...
Hi guys, I've been doing pluggable console application before but with no UI on it. A simple telnet implementation provides the way for application configuration but now I'm tasked to provide a UI for it.
I've read a blog on how to accomplish my requirements but I can't follow it. Can anyone provide simple explanation and simple implem...