[Trac] #137: remove occurences of mexErrMsgTxt() in all MEX files
#137: remove occurences of mexErrMsgTxt() in all MEX files --------------------------+------------------------------------------------- Reporter: sebastien | Owner: Type: enhancement | Status: new Priority: critical | Milestone: 4.2 Component: Core M-files | Version: Keywords: | --------------------------+------------------------------------------------- This function throws a C++ exception, which is not handled correctly by MinGW for 64-bit (at the current time). It appears that the benefits of using MinGW on Windows 64 are greater than the inconvenience of not using that function. In case of error, MEX files should print a meaningful message with mexPrintf(), and then return control to MATLAB (with return()). A new output argument of the MEX file should be dedicated to informing MATLAB of the error condition (the output argument can be 0 in case of success, 1 in case of error). The MATLAB code should check that argument, and in case of failure should run "error('MEX failed')" to interrupt the execution of the code. Note that it is still possible to use C++ exceptions inside the MEX function (as is currently done in k_order_perturbation), so that all error conditions can be catched by the top-level mexFunction(). -- Ticket URL: <https://www.dynare.org/trac/ticket/137> Dynare <http://www.dynare.org> The Dynare project
#137: remove occurences of mexErrMsgTxt() in all MEX files ---------------------------+------------------------------------------------ Reporter: sebastien | Owner: houtanb Type: enhancement | Status: accepted Priority: critical | Milestone: 4.2 Component: Core M-files | Version: Resolution: | Keywords: ---------------------------+------------------------------------------------ Changes (by houtanb): * owner: => houtanb * status: new => accepted -- Ticket URL: <https://www.dynare.org/trac/ticket/137#comment:1> Dynare <http://www.dynare.org> The Dynare project
#137: remove occurences of mexErrMsgTxt() in all MEX files ---------------------------+------------------------------------------------ Reporter: sebastien | Owner: houtanb Type: enhancement | Status: accepted Priority: critical | Milestone: 4.2 Component: Core M-files | Version: Resolution: | Keywords: ---------------------------+------------------------------------------------ Comment(by sebastien): As of 92cb073f3af0931ad9919a6627f2d9aeef6440e2, fixed for all MEX files except bytecode. -- Ticket URL: <https://www.dynare.org/trac/ticket/137#comment:2> Dynare <http://www.dynare.org> The Dynare project
#137: remove occurences of mexErrMsgTxt() in all MEX files ---------------------------+------------------------------------------------ Reporter: sebastien | Owner: houtanb Type: enhancement | Status: closed Priority: critical | Milestone: 4.2 Component: Core M-files | Version: Resolution: fixed | Keywords: ---------------------------+------------------------------------------------ Changes (by sebastien): * status: accepted => closed * resolution: => fixed Comment: Done for bytecode DLL in df1b1e4ed06344156f27f7163599473e80950ab2 -- Ticket URL: <https://www.dynare.org/trac/ticket/137#comment:3> Dynare <http://www.dynare.org> The Dynare project
participants (1)
-
Trac Dynare