[Ecls-list] Restarting the ECL engine within the same process?

Goffioul Michael goffioul at imec.be
Fri Oct 1 05:13:10 UTC 2004


> Hi Michael,
> 
> currently one can not restart the lisp engine because it 
> destructively modifies some data that it uses to create 
> packages, symbols, etc. 
> 
> However, AFAIK, you do not need this facility. Matlab 
> compiles your MEX files as DLLs and it loads them only once 
> at the beginning of a program, and unloads them when it finds 
> it suitable. First of all, if Matlab unloads your MEX file, 
> it will also unload the ECL library, and thus the whole 
> system will be cleaned. Calling cl_shutdown() is not really required.

MEX file is cleared from memory when you issue a "clear" in
MATLAB (or exit it, of course). Won't there be a memory leak
if the memory is not deallocated cleanly when the MEX file is
cleared?
You might be right. Maybe I dsimply on't need to cleanly exit ECL
engine.

Thanks.
Michael.




More information about the ecl-devel mailing list