LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a programmatic Force Quit?

Win10, CVI 2019.

 

I have a very large, very complex CVI app that I cannot quit.  When DiscardPanel ( panelHandle ) causes the panel to disappear, EVENT_DISCARD is sent to each control callback.  As nearly as I can tell something is causing this to continue, cycling through all control callbacks, forever.  I can't figure out what remains running, but I think it is part of a DLL that hangs the app. 

 

Is there a way programmatically to force quit an application, like put it in an EVENT_DISCARD case?

 

Is there a way programmatically to force quit a running DLL?

0 Kudos
Message 1 of 3
(1,798 Views)

Perhaps C's exit() is what you are looking for?

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

IanW,

I ran into exit() shortly after posting this, and tried it.  It seems to work fine for the executable app, but not for debug.  Quitting in debug still gets lost in DiscardPanel ( panelHandle ), and there is no way to find out where. Just issues an error popup.

 

But as long as the executable quits without hanging, I'm good with it.

 

Thanks...

0 Kudos
Message 3 of 3
(1,751 Views)