Hi,
If you really need this, you can create a dll in some other language. When
the dll is removed from memory (DLL_PROCESS_DETACH), call the windows api
ShellExecute, with as file name the vi you want to open.
Put the dll somewhere in your main. If you close main, the dll will be
removed, and the shellexecute will open the vi...
It just might work, but the other sugestions (custom menu) are a much better
way to do it.
Regards,
Wiebe.
"wwwbrown" wrote in message
news:50650000000800000082300000-1004225886000@exchange.ni.com...
> I need a technique for executing a VI upon any LabVIEW termination.
> In particular, the solution must include executing the VI when no
> other VI is running and the user selects File->Exit (File->Quit on
> Sun).