Hi. This is a basic question about building a "pro" application.
Let's suppose I have an application (VI or built executable), which is commonly structured as a while loop.
When the user wants to exit, I need the application to perform some operations (file writing and closing, for example) and then exit. I can easily put a "close" control on the front panel and that would do it, but now I would like to do it with the X button of the title bar, as most "pro" applications do.
As you may know, the problem is that when you press the X button the aplication exits inmediatly aborting the execution, whithout performing the desired operations.
Any comments appreciated. Thank you.
Daniel R.