Debug Error on virtual unmanaged functions.

  • Thread starter Thread starter Jacobo Rodriguez Villar
  • Start date Start date
J

Jacobo Rodriguez Villar

Hello, I'm writting an application using mixed mode with C++ and
C++.NET, and I have a problem, if I put a breakpoint or try to enter
(with step by step) into a virtual and unmanaged method, the debugger
tell me: "There aren't source code avalaible for the current location",
and the disassembler window appears. I can enter with the debugger into
functions of the same file but these functions aren't virtual. I tried
to put the debugger in mixed mode, instead of automatic, but nothing
happens.

If anyone could help me...
 
I get this problem consistenltly. As does other programmers on other machines at my work, The following code causes the bug:

#using <mscorlib.dll>

struct A
{
virtual void test() {};
};

struct B: public A
{
virtual void test()
{
int i=0;
}
};

struct C
{
C()
{
A* a = new B();
a->test();
}

};

__gc class GC
{
public:
GC()
{
C* c = new C();
}
};


void main()
{
GC* g = new GC();
}
 
Back
Top