Home All Groups Group Topic Archive Search About

Type is not marked as serializable.

Author
24 Oct 2007 7:11 PM
ericmhhui
Hi,

I have the following C++ code snippet that always give me the error.

The type A in Assembly ........... is not marked as serializable.

when I try to run it.  My class already has the [Serializable]
attribute.

What am I still missing or I am doing something wrong completely?


[Serializable]
__gc class A
{
public:
   A(void);
   ~A(void);
   String* S;
   bool B;
   void Calc ();
   Assembly* A;
   MethodInfo* M;
};


void myfunc ()
{
   AppDomain* Ad = AppDomain::CreateDomain ("myAd");
   A* objA = new A ();
   Ad->DoCallBack (new CrossAppDomainDelegate (objA, &A::Calc) );
}

AddThis Social Bookmark Button