Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2004

Tip: Looking for answers? Try searching our database.

Debug Error on virtual unmanaged functions.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jacobo Rodriguez Villar - 03 May 2004 11:02 GMT
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...
Karl Burdack - 12 May 2004 08:06 GMT
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();
}

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.