PC Review


Reply
Thread Tools Rate Thread

Debug Error on virtual unmanaged functions.

 
 
Jacobo Rodriguez Villar
Guest
Posts: n/a
 
      3rd May 2004
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...
 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2FybCBCdXJkYWNr?=
Guest
Posts: n/a
 
      12th May 2004
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();
}


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to debug unmanaged DLL with web application? Vlad Microsoft ASP .NET 1 30th Oct 2008 06:31 PM
How to debug an unmanaged dll? Ole Microsoft Dot NET Compact Framework 2 13th Nov 2007 07:35 AM
Debug - Unmanaged and managed code =?Utf-8?B?VGlt?= Microsoft C# .NET 0 29th Dec 2005 05:30 AM
why i can`t debug virtual cpp functions? Serg Microsoft VC .NET 10 7th Oct 2004 02:00 AM
Is it possible to debug unmanaged dll with CE.NET apps? Minghai Chang Microsoft Dot NET Compact Framework 1 22nd Jul 2003 06:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 PM.