altarvic wrote on 9/26/2019, 10:53 AM

You can create an invisible dockable control (width = height = 0) that does nothing but react to application closing. But there is a bug in Vegas (I consider it a bug): some Vegas classes are already deinitialized at that moment and accessing them will throw an exception. For example, you can't use vegas.Transport class.

@VEGASDerek please pay attention to this issue, as this can lead to various exceptions when exiting the application. All Vegas classes must not be de-initialized before the last event handler completes its work.