Jump to content

Wiebe@CARYA

Members
  • Posts

    3
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Wiebe@CARYA

  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.