I have a compiled application which cannot properly save some user defined objects. When I try to load the mat file in the program it crashes with an Access Violation error. The mat file cannot be loaded in Matlab either (appears to be corrupt). However, the application runs smoothly before compilation. What are the possible causes for this?
classdef Audio < handle
properties
...
end
methods
function self = Audio()
...
end
end
end
a = Audio();
b = Audio();
c = Audio();
AudioVector = [a,b,c]
save(someFullPath, 'AudioVector')