From: Sebastiaan on
Dear users,

I have a custom MEX C-file, which has been used very frequently for more than six months without any problems (let's say, it has an average call of 100 times per day for different inputs). However, today I got a waning which made me curious about the origin:

Warning: An error occurred while running the atExit function for the MEX-file
foo.mexa64.
However, the MEX-file was cleared from memory.

This happened several hours (days) after the MEX file was last run in this Matlab session. I only hit enter in the command window when returning to work, which triggered this warning.

What could be the cause of this warning?

Sebastiaan