Jump to content

Wiebe@CARYA

Members
  • Posts

    3
  • Joined

  • Last visited

  • Days Won

    1

Wiebe@CARYA last won the day on May 7

Wiebe@CARYA had the most liked content!

Profile Information

  • Gender
    Male

LabVIEW Information

  • Version
    LabVIEW 2017
  • Since
    1998

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Wiebe@CARYA's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Week One Done
  • One Month Later
  • One Year In Rare

Recent Badges

1

Reputation

  1. The function is there twice. It seems I also had to add the WaitForExit: To make it stable. Not sure if that what causes the crashes. The moment I add things, it seems stable, until a reload and then it crashes again
  2. To make this work on both 32 and 64 bit LabVIEW (I used LV23), the first parameter in SetConsoleCtrlHandler (in Kill.vi) should be a pointer sized integer:
  3. Hi, Has anyone tried this on Windows 8? I'm testing a LV11 application on Windows 8. It seems WIndows 8 does trigger "Application Instance Close?" in a normal exe when Windows shutsdown. But the Disgard flag seems to be ignored. Meaning that only the code inside the event seems to be executed, and nothing else. This might be a timing issue, although I'd expect the kill after seconds, and the exe shuts down in a flash. With the app running as a service (created with task scheduler), the event is not triggered at all when windows shutsdown. It's almost like Windows tries to send a WM_CLOSE (as documented), but the service has no window, so it kills the service (as documented). The same happens when you use task scheduler to end the task manually... When task manager is used to end a normal exe, Windows Vista triggers the event, but windows 8 does not... Regards, Wiebe.
×
×
  • Create New...

Important Information

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