accumulating thread count after calling mex file multiple times
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Jan
el 9 de Mayo de 2017
Without seeing the relevant part of the code, it is impossible to guess, what happens.
Respuestas (1)
Chris van der Togt
el 10 de Mayo de 2017
Editada: Chris van der Togt
el 12 de Mayo de 2017
0 comentarios
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!