Handle "Application Close" event to shutdown Template

Issue #53 new
James Powell repo owner created an issue

Shutdown when running toplevel. This event is (I believe) triggered by taskkill in Windows, which is a valid way to shutdown an application.

Comments (4)

  1. James Powell reporter

    Problem: trying to use Application Close gives this error:

    With the exception of the Timeout event, shared reentrant VIs cannot statically register for application events. You should either make this VI full reentrant or non-reentrant or use dynamic event registration. Dynamic event registration allows the VI to register for the event when it starts running and clear the registration as it exits.

  2. James Powell reporter

    Actually, tests with DEV NR template suggest that “End Task” from task manager does trigger Panel Close?, but then kills the app a fraction of a second later.

  3. James Powell reporter

    Seems this is only when stopping teh application as a whole, but “end Task of the subtask (see below) just stops VI as normal.

  4. Log in to comment