LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

crash with "R6025 pure virtual function call" message

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?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 4
(3,854 Views)

Hi,

 

I think you can check the Microsoft issue with the next KB:

 

http://support.microsoft.com/kb/125749

 

Let me know,

Giuseppe.

0 Kudos
Message 2 of 4
(3,843 Views)

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...

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 3 of 4
(3,834 Views)

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

0 Kudos
Message 4 of 4
(3,236 Views)