The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Release dll files loaded within mex file
Replies: 14   Last Post: Apr 3, 2015 10:08 AM

Advanced Search

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

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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.