lloydy
July 28th, 2004, 08:49 PM
I have a base class implemented in C#, and I am deriving a class from it in managed C++. The problem is when I try to include a destructor in the derived class I get the follwoing error
Protocol error LNK2001: unresolved external symbol "void __cdecl __CxxCallUnwindDtor(void (__thiscall*)(void *),void *)" (?__CxxCallUnwindDtor@@$$J0YAXP6EXPAX@Z0@Z)
The C# class inherits from IDisposable and has a Dispose and Desturctor method.
The reason I need to have a destructor is the program is currently holding resources without it (Comm Port)
Can anyone help?
The destructor code I am implementing is:
private:~SerialHandler(){ this->Close();} //Close is a function in the base class.
HELP :blush:
Thanks
Protocol error LNK2001: unresolved external symbol "void __cdecl __CxxCallUnwindDtor(void (__thiscall*)(void *),void *)" (?__CxxCallUnwindDtor@@$$J0YAXP6EXPAX@Z0@Z)
The C# class inherits from IDisposable and has a Dispose and Desturctor method.
The reason I need to have a destructor is the program is currently holding resources without it (Comm Port)
Can anyone help?
The destructor code I am implementing is:
private:~SerialHandler(){ this->Close();} //Close is a function in the base class.
HELP :blush:
Thanks