Last post Jul 14, 2008 09:02 AM by Vandalfoe
May 08, 2008 07:08 PM|AlexB1318|LINK
I wasn't really sure where to post this...
I'm working with the AppDomain class, and I'm trying to get this sample VB code (http://msdn.microsoft.com/en-us/library/system.appdomain(VS.80).aspx ) to work but I'm getting
the error in the subject line. Also when I search for MarshalByRefType in Object Browser I get no results. The article says the reference namespace is System. Is this a type o, or did the name of the class change?
May 09, 2008 05:02 AM|DigiMortal|LINK
May 09, 2008 11:49 AM|AlexB1318|LINK
Thanks, but System is always referenced automatically.
May 10, 2008 06:26 AM|DigiMortal|LINK
Jul 14, 2008 09:02 AM|Vandalfoe|LINK
There is no MarshalByRefType in System. (And I'm guessing you've already got a reference to System in your project)
Anyway, If you're talking about the MSDN sample code for AppDomain, the "MarshalByRefType" is defined at the bottom of the code snippet. Not obvious at first, I know! Plus, it sounds like something you'd find in some .NET class, but it isnt. In your code
you'd replace it with the class of yours that you want to load and unload. just change your class to inherit from MarshalByRefObject, then you can use the code.