07-12-2012 01:44 AM
I've developed an application in CVI 210 SP1 that uses UDP communication library and SQL Toolkit to write data in a SQL Server Express 2005 database.
Sometimes this application crashes with a popup saying "R6025 pure virtual function call".
I know that I gave only few information, but can someone help me finding the reason of this error?
07-13-2012 07:17 AM
Hi,
I think you can check the Microsoft issue with the next KB:
http://support.microsoft.com/kb/125749
Let me know,
Giuseppe.
07-16-2012 12:54 AM
I had already read that KB before posting, but I don't know which is the pure virtual functions, because I've benn working in CVI...
12-10-2013 02:42 AM
I also met such a problem on XP.
Below is a very simple example of CVI code. When running the code, if I did not right click the myFunc button, then the R6025 run time error will occur when exit. If it had been right clicked during running, then the error will not occur.
int CVICALLBACK myFunc(int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
switch (event) {
case EVENT_COMMIT:
.....
break;
case EVENT_RIGHT_CLICK:
MessagePopup ("", "xxx.");
break;
}
return(0);
}
int CVICALLBACK Quit(int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
switch (event) {
case EVENT_COMMIT:
QuitUserInterface(0);
}
return(0);
}