Click here to Skip to main content
15,908,455 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to change UUID? Pin
<color>Aljechin 9-Jan-06 21:30
<color>Aljechin 9-Jan-06 21:30 
AnswerRe: How to change UUID? Pin
Rage9-Jan-06 21:36
professionalRage9-Jan-06 21:36 
GeneralRe: How to change UUID? Pin
<color>Aljechin 9-Jan-06 21:41
<color>Aljechin 9-Jan-06 21:41 
GeneralRe: How to change UUID? Pin
Bob Stanneveld9-Jan-06 22:47
Bob Stanneveld9-Jan-06 22:47 
GeneralRe: How to change UUID? Pin
<color>Aljechin 9-Jan-06 23:07
<color>Aljechin 9-Jan-06 23:07 
GeneralRe: How to change UUID? Pin
Bob Stanneveld9-Jan-06 23:59
Bob Stanneveld9-Jan-06 23:59 
GeneralRe: How to change UUID? Pin
<color>Aljechin 10-Jan-06 1:09
<color>Aljechin 10-Jan-06 1:09 
GeneralRe: How to change UUID? Pin
Rage10-Jan-06 1:27
professionalRage10-Jan-06 1:27 
AnswerRe: How to change UUID? Pin
Stephen Hewitt9-Jan-06 21:46
Stephen Hewitt9-Jan-06 21:46 
GeneralRe: How to change UUID? Pin
<color>Aljechin 9-Jan-06 23:09
<color>Aljechin 9-Jan-06 23:09 
GeneralRe: How to change UUID? Pin
Stephen Hewitt10-Jan-06 2:56
Stephen Hewitt10-Jan-06 2:56 
AnswerRe: How to change UUID? Pin
ThatsAlok9-Jan-06 22:44
ThatsAlok9-Jan-06 22:44 
GeneralRe: How to change UUID? Pin
<color>Aljechin 9-Jan-06 23:10
<color>Aljechin 9-Jan-06 23:10 
GeneralRe: How to change UUID? Pin
<color>Aljechin 9-Jan-06 23:42
<color>Aljechin 9-Jan-06 23:42 
GeneralRe: How to change UUID? Pin
ThatsAlok10-Jan-06 0:07
ThatsAlok10-Jan-06 0:07 
QuestionHow to fetch data from other computer using socket in VC++ Pin
baldha rakesh9-Jan-06 21:24
baldha rakesh9-Jan-06 21:24 
AnswerRe: How to fetch data from other computer using socket in VC++ Pin
Rage9-Jan-06 21:39
professionalRage9-Jan-06 21:39 
AnswerRe: How to fetch data from other computer using socket in VC++ Pin
Stephen Hewitt9-Jan-06 22:03
Stephen Hewitt9-Jan-06 22:03 
AnswerRe: How to fetch data from other computer using socket in VC++ Pin
ThatsAlok9-Jan-06 22:40
ThatsAlok9-Jan-06 22:40 
QuestionTroubleshooting R6025 Runtime error message Pin
ledallam9-Jan-06 20:30
ledallam9-Jan-06 20:30 
AnswerRe: Troubleshooting R6025 Runtime error message Pin
kakan9-Jan-06 20:33
professionalkakan9-Jan-06 20:33 
AnswerRe: Troubleshooting R6025 Runtime error message Pin
Stephen Hewitt9-Jan-06 21:07
Stephen Hewitt9-Jan-06 21:07 
As you're probably aware, this means that you called a pure virtual function. At first sight this seems impossible - But it is not. What's more, in general, such errors can't be caught at compile time. Here is some code that shows how this can happen:

#include <iostream>
using namespace std;

class Base
{
public:
	virtual VirtualFunction() = 0;
};

void UseIt(Base *pBase)
{
	pBase->VirtualFunction();
}

class Base2 : public Base
{
public:
	Base2()
	{
		UseIt(this);
	}
};

class Derived : public Base2
{
public:
	Derived()
	{
	}

	virtual VirtualFunction()
	{
		cout << "Derived::VirtualFunction\n";
	}
};

int main(int argc, char* argv[])
{
	Derived d;
	return 0;
}


It happens because you are calling a virtual function in a function that is called from a constructor (and the object is partially constructed).

To debug it I would launch it in the debugger and when the error dialog appears break and look at the call stack. If it only happens in a release build, build a release build with debug info and follow the procudure above - Debugging with a map file isn't needed when you do this, it's the hard way.

Steve
GeneralRe: Troubleshooting R6025 Runtime error message Pin
ledallam10-Jan-06 19:37
ledallam10-Jan-06 19:37 
GeneralRe: Troubleshooting R6025 Runtime error message Pin
ledallam10-Jan-06 19:40
ledallam10-Jan-06 19:40 
GeneralRe: Troubleshooting R6025 Runtime error message Pin
Stephen Hewitt10-Jan-06 19:57
Stephen Hewitt10-Jan-06 19:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.