My app is crashing on shutdown.
I used the TTapi shutdown methods that come in your C# samples.
The Application crashes with the following exception (thrown when TTAPI.Shutdown() is ran):
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
Answer by tcarvalho · Apr 17 at 11:51 AM
I figured that in one of my apps, this only happens when I close the program soon after the API is started. (how can I avoid this? Is there any event to understand if the user can safely close the app or not?)
In other apps, it always crashes.