Jump to content

Executable Application Close Effect


Recommended Posts

post-10325-1213851869.png?width=400



Question: When I close a VI with the Window Close method what actually happens in the background?
It seems that the VI front panel closes but the VI is still running even if I handle application close event.
It doesn't finish off it code?

I did a search so I know for an Executable I get handle this for the top level VI by tweaking the .ini to do a cleaner shutdown.
And EyesOnVis talks about execution relative to top level vi in code.

Cheers
JG
Link to comment

Even better is to use the "Panel Close?" notification event. Then you can discard the user's panel close request and perform a controlled shutdown of your program, ensuring that you can run any cleanup subVI's that you require. I actually do this for both the "Panel Close?" and "Application Close?" notification events, so that I can always ensure a proper shutdown.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.