Skip to content
Snippets Groups Projects
Verified Commit 19c6ca72 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Bytecode: release the lock on dynamic.bin when an exception occurs

Closes: #1815
(cherry picked from commit 271d80ab)
parent c6dff571
No related branches found
No related tags found
No related merge requests found
...@@ -723,6 +723,8 @@ mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) ...@@ -723,6 +723,8 @@ mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
} }
catch (GeneralExceptionHandling &feh) catch (GeneralExceptionHandling &feh)
{ {
// Release the lock on dynamic.bin for MATLAB+Windows, see #1815
interprete.Close_SaveCode();
mexErrMsgTxt(feh.GetErrorMsg().c_str()); mexErrMsgTxt(feh.GetErrorMsg().c_str());
} }
} }
...@@ -734,6 +736,8 @@ mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) ...@@ -734,6 +736,8 @@ mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
} }
catch (GeneralExceptionHandling &feh) catch (GeneralExceptionHandling &feh)
{ {
// Release the lock on dynamic.bin for MATLAB+Windows, see #1815
interprete.Close_SaveCode();
mexErrMsgTxt(feh.GetErrorMsg().c_str()); mexErrMsgTxt(feh.GetErrorMsg().c_str());
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment