01-15-2021 09:14 AM
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?
01-16-2021 07:12 PM
Perhaps C's exit() is what you are looking for?
01-18-2021 08:13 AM
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...