You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
0. create a C# project named xxx
1. save a cell v into a mat file using Matlab of above versions
2. mxCellArray v = mxCellArray)mf.GetVariable("v");
3. v.GetCell(0);
4. run the C# app and when it comes to the end, a window says xxx.exe has
stopped working. A problem caused the program to stop working correctly.
Windows will close the program and notify you if a solution is available.
What is the expected output? What do you see instead?
The program should terminate normally.
What version of the product are you using? On what operating system?
As in the title
Please provide any additional information below.
Original issue reported on code.google.com by suhaoch...@gmail.com on 7 Sep 2013 at 10:56
The text was updated successfully, but these errors were encountered:
I think I have figured out what happened. The SafeArrayPtr does have some
problem for recursive data structures such as cell and struct. In
ReleaseHandle(), mxDestroyArray is called, which is designed by *MATLAB* to
deallocate memory in a recursive way. In contrary, in this code, mxDestroyArray
is called at each time an element of the cell array is disposed, including the
cell array itself. That causes the problem I reported.
Original comment by suhaoch...@gmail.com on 9 Sep 2013 at 7:48
Original issue reported on code.google.com by
suhaoch...@gmail.com
on 7 Sep 2013 at 10:56The text was updated successfully, but these errors were encountered: