appDomain Unload

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rain

    #1

    appDomain Unload

    How do we know if the appDomain.unloa d is working? i've tried deleting the
    dll inside a program right after unloading the appdomain but there was a
    exception.. SystemUnauthori zedAccess. Thanks!
  • Lasse Vågsæther Karlsen

    #2
    Re: appDomain Unload

    > How do we know if the appDomain.unloa d is working? i've tried deleting[color=blue]
    > the dll inside a program right after unloading the appdomain but there
    > was a exception.. SystemUnauthori zedAccess. Thanks!
    >[/color]

    Are you sure you didn't manage to pull the assembly into the main appdomain?
    When you debug, see if the output window lists the assembly as being loaded
    into the main appdomain.

    You can also try enumerating the assemblies in the main appdomain after unloading
    the separate one and see if the assembly has been loaded there.

    This is the most common error I've encountered when I use separate appdomains.

    --
    Lasse Vågsæther Karlsen

    mailto:lasse@vk arlsen.no
    PGP KeyID: 0x2A42A1C2


    Comment

    Working...