Debug Error on virtual unmanaged functions.

  • Thread starter Jacobo Rodriguez Villar
  • 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...
 
G

Guest

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();
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top