Error CXX0019 bad type cast

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
In the Visual Studio 2005,  fighting with a CXX0019: Error: bad type cast issue during debug.  No .NET.

Im watching variable  (void * var) - in library a.dll and trying to cast it to MyType, a struct,  which is defined in another library, b.dll.  b.dll is present in the callstack;  it is loaded.

The cast (MyType*) var fails miserably, no chance of success; are there any tricks to make this work, looking into the Immediate Window maybe there is a way to locally redefine the type, or load definitions?

I dont understand very well the debug mechanism, so this might be not an entirely correct question.





View the full article
 
Back
Top