Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Release dll files loaded within mex file
Replies: 13   Last Post: Aug 26, 2014 3:22 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Alexander

Posts: 4
Registered: 10/1/09
Release dll files loaded within mex file
Posted: Oct 1, 2009 11:00 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi everybody,

I have the following problem, which I'm hoping someone here can help me with.

I have a C++ mex file which is linked against a dynamic library. Everything compiles and links fine and the function is doing what it's supposed to be doing. However, when I call that mex function for the first time, Matlab locks the .dll file and does not release it until I quit Matlab (e.g. I can't delete or overwrite the file while Matlab is running). This is annoying because I want to be able to recompile and test the dynamic library without having to quit Matlab every time. How do I tell Matlab to release/clear/unload that dll?

Thanks a lot for any help!
Alexander Ecker



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.