Is there any way to know when MATLAB comes out? I would like to do some work, for example, free some resource, print some logs ... I could add some code to some class destructors. But since we cannot determine the order that MATLAB calls destructors, I am not sure which one is the last, so I can free the resource.
Can we register a MATLAB exit event callback if such an event exists ...?
Joe c source
share