Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI8.1 General protection fault on function ProcessSystemEvents()

CVI 8.1 causes above error.
 
This code worked fine on ALL previous versions of CVI
 
get FATA RUN TIME ERROR at code ProcessSystemEvents()
 
int CVICALLBACK MainPanelCallback(int panel, int event, void *callbackData, int eventData1, int eventData2)
/* shut off hardware, exit program (from close box) */
{
  if (event == EVENT_CLOSE) {
    SuspendTimerCallbacks ();
    g_tests_active = FALSE;
    Close();   // and EXIT
  }
  ProcessSystemEvents();              //** FATAL RUN TIME ERROR HERE
  return(0);
}
- Make Software User Friendly -
0 Kudos
Message 1 of 4
(3,331 Views)
Hi rorOttowa,
 
Are you able to test this exact project in a different version of CVI? Did this program immediately stop working once you installed 8.1 or did it work for a while?
 
Also, I'm going to need more information about your code - for instance, does the GPF occur every time ProcessSystemEvents is called or only after the EVENT_CLOSE event has been fired?
 
One other thing to consider - the GPF may actually be queued in your system and my not be occuring at ProcessSystemEvents; rather, you may just be seeing it there because the system queue is processed then. Is there any other time that this error may have occurred?
 
Matt M
NI
0 Kudos
Message 2 of 4
(3,325 Views)
Are you able to test this exact project in a different version of CVI? Did this program immediately stop working once you installed 8.1 or did it work for a while?as I said in my message it works on all previous versions of CVI....so yes to your question.
 
Also, I'm going to need more information about your code - for instance, does the GPF occur every time ProcessSystemEvents(no) is called or only after the EVENT_CLOSE event has been fired?  Yes. it seems to be random and only seen on one PC. If you left the code run and did not touch the hot key it was fine. It does not happen everytime. 
 
One other thing to consider - the GPF may actually be queued in your system and my not be occuring at ProcessSystemEvents; rather, you may just be seeing it there because the system queue is processed then. Is there any other time that this error may have occurred?
hard to say..but not seen so far.
- Make Software User Friendly -
0 Kudos
Message 3 of 4
(3,321 Views)
Hi rorOttowa,
 
What is different about this PC from the other PCs that this application works on? Is it the same OS and service pack?
 
Furthermore, you said if you let it run without pushing the hot key it was fine. Are you saying that this error only occurs when you press a shortcut key (and even then, its not every time)?
 
Finally, can you give me more info on the GPF? Is there a message or error code?
 
Matt M
0 Kudos
Message 4 of 4
(3,305 Views)