Unverified Commit 271d80ab 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
parent 82d0b1ca
Pipeline #6013 passed with stages
in 81 minutes and 6 seconds
......@@ -723,6 +723,8 @@ mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
}
catch (GeneralExceptionHandling &feh)
{
// Release the lock on dynamic.bin for MATLAB+Windows, see #1815
interprete.Close_SaveCode();
mexErrMsgTxt(feh.GetErrorMsg().c_str());
}
}
......@@ -734,6 +736,8 @@ mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
}
catch (GeneralExceptionHandling &feh)
{
// Release the lock on dynamic.bin for MATLAB+Windows, see #1815
interprete.Close_SaveCode();
mexErrMsgTxt(feh.GetErrorMsg().c_str());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment