LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

GPF + InstallCtrlCallback?

I'm getting a GPF all of the sudden in a branch of a very mature project.  I've been getting it in the debugger, and the code breaks at RunUserInterface().

 

I managed to track down where/what is causing it, but I'm at a loss as to why.

 

In this new branch, I'm replacing the callback function of a table control on one panel.  I use InstallCtrlCallback to do so.  This works as it should.  Inside its new callback function, I call a function which does some NewCtrl (timer creation within the same thread) and then InstallCtrlCallback for the timer.  These are causing the GPF when I allow the function to return.

 

If I simply comment out the creation of those timers & callback installs, no more GPFs.  Why?!

0 Kudos
Message 1 of 3
(2,831 Views)

Hi ElectroLund

 

What version of LabWindows/CVI are you using?

 

Is it possible to get a smallest-reproducible-case working? I would be happy to run a simple bit of code that causes the error and test it on my end.

 

Mitchell Faltin

Applications Engineer

National Instruments

www.ni.com/support

 

0 Kudos
Message 2 of 3
(2,789 Views)

Thanks for your help.  Inexplicably, today I'm not seeing the issue.

 

I'll keep an eye on it and let you know if it returns.

0 Kudos
Message 3 of 3
(2,784 Views)