accumulating thread count after calling mex file multiple times
Mostra commenti meno recenti
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 Commento
Jan
il 9 Mag 2017
Without seeing the relevant part of the code, it is impossible to guess, what happens.
Risposte (1)
Chris van der Togt
il 10 Mag 2017
Modificato: Chris van der Togt
il 12 Mag 2017
Categorie
Scopri di più su Write C Functions Callable from MATLAB (MEX Files) in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!