Debasish Pramanik wrote:
>
> Hi All,

> Is it possible to enumerate all AppDomain within a
> process? I have a console based application and i'm
> creating appdomain using the API and i want to list
> them up?

If your code creates AppDomains ( AppDomain.CreateDomain() )
you should be able to enumerate them. Just add them
into an ArrayList and that's all.

> Basically i just want to understand the
> corerelationship between process, threads and
> appdomain...as per my abstraction or watever i have
> understood AppDomain is a another level of isolation
> within a process..similar to thread...like a process
> 4gb of space a thread is 1mb of stack wat about
> AppDomain ?

>  As threads are kernel objects wat are AppDomain ?

Processes and Threads are Win32 Kernel objects.
A Process define memory boundaries. A Thread is
a code executor and lives inside a Process.

The AppDomain is a dotNet notion and a class.
An AppDomain lives inside a Process.
Many AppDomains may reside inside a single Process.
An AppDomain has its own memory boundaries.

So, regarding memory boundaries, AppDomains play the role
a Process plays in pure Win32 programming.

In other words, an AppDomain establishes memory boundaries
inside a Process's memory boundaries.
So, if you want access to another AppDomain's objects
you have to resort to dotNet Remoting.


--
Regards
Theo

------------------------
Theo Bebekis
Thessaloniki, Greece
------------------------
Greek_Delphi_Prog : a Delphi Programming mailing list in Greek at
    http://groups.yahoo.com/group/Greek_Delphi_Prog

atla_custom : a Unisoft Atlantis Customization mailing list at
    http://groups.yahoo.com/group/atla_custom
------------------------

Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=315388.5529720.6602079.3001176/D=groups/S=:HM/A=2372354/rand=492258910


Yahoo! Groups Links

Reply via email to