Info

This question is closed. Reopen it to edit or answer.

Got Problem loading a dll repeatedly

1 view (last 30 days)
Tjalf
Tjalf on 3 Nov 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
Our Matlab script calls repeatedly a mexfile in which a dll representing a model keeps being loaded and unloaded. After about 1500 cycles of loading and unloading the dll cannot be loaded by the Matlab-process anymore(it only works again if Matlab is restarted). This error cannot be reproduced in a C++ enviromnent, where I could load and unload the same dll more than 1600 times without problems. What could be the cause of that behaviour and what can be done to avoid this?
  1 Comment
Geoff Hayes
Geoff Hayes on 3 Nov 2014
Are you observing an error at the point where the dll cannot be loaded? If so, what is it? Why must the code repeatedly load and unload the dll?

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!