accumulating thread count after calling mex file multiple times
Ältere Kommentare anzeigen
I have written a mex function that opens a W32 window as a child to a matlab window. And a second function that closes this window.
After calling these functions repetitively (20+) without errors, matlab becomes unresponsive after 5 to 10 minutes. Even if i call drawnow in between the other calls. The only thing I notice is, that after each call to my mex functions the number of threads associated with matlab increases (>250).
I am not creating threads in my mex function and after creating a window in the first call, I reuse the handle to the window.
Question, why does matlab freeze after some time , and why is the number of threads increasing.
regards,
Chris
1 Kommentar
Jan
am 9 Mai 2017
Without seeing the relevant part of the code, it is impossible to guess, what happens.
Antworten (1)
Chris van der Togt
am 10 Mai 2017
Bearbeitet: Chris van der Togt
am 12 Mai 2017
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!