LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

windows shutdown, proces kill detect

Hello,

 

I am working on aplication that needs to preform some actions before windows will close.

There is a way to detect if someone closes system or logs in/out?

And is there a way to prevent from killing my aplication from task manager or cmd? It would be nice if program could preform last actions before is killed.

 

Thanks in advice 🙂

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

@pawhan11 wrote:

Hello,

 

I am working on aplication that needs to preform some actions before windows will close.

There is a way to detect if someone closes system or logs in/out?

And is there a way to prevent from killing my aplication from task manager or cmd? It would be nice if program could preform last actions before is killed.

 

Thanks in advice 🙂


A seven-second Google returned this gem:

 

http://digital.ni.com/public.nsf/allkb/66659ACE17C686418625736000606A64

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 2 of 3
(2,900 Views)
While you're at it, you might also want to consider handling the Panel Close? event. It fires when the user closes the VI's window. Similar reasoning, same solution. Discard the event, and then do whatever you need to do to return your system to a safe state and stop the application.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 3 of 3
(2,867 Views)