|
On 1/20/2012 12:00 PM, Jairo Carlin wrote:
> Hi, everybody
>
> I am using a mex to pass variables to fortran project. When I run from
> matlab at first time, everything is ok. But when I do that again, with
> the same condition (all the same), Matlab close with a windows: "MATLAB
> has encountered an internal problem and needs to close". I have been
> running all the process in debug mode and I traced the problem at LAPACK
> subroutine which run in one fortran program. But It is rare, beacause
> all the input variables for the lapack subroutine are the same (in the
> first and in the second running).
>
> Anyone can help me?
Not w/o the interface code at the minimum, no.
Undoubtedly you have a problem of some sort that translates to a
dangling pointer, bounds error or some other fatal error in the mex
interface or in the call to the LAPACK routine.
Have you used all possible compiler error options including undefined
variables, array bounds checking, no optimization, etc., etc., etc., ...?
--
|