Matlab's C API interface degrades over time
조회 수: 1 (최근 30일)
이전 댓글 표시
I've been having this issue (for years!), matlab slowing down gradually when running many iterations that use the C interface, which I've been handling by restarting matlab every X iterations:
Now, I'm having a similar issue, but restarting matlab doesn't help and isn't needed. I need to restart my own c++ app that uses matlab's C interface.
My estimate is that matlab's engine dll that my app is using degrades and doesn't reset between new engine connections.
Maybe somehow reloading the engine dlls may be enough?
댓글 수: 2
Jan
2023년 2월 28일
I did not observe such a degradation. Of course, the C inrterface is not getting tired.
Can you provide a minimal working example to clarify, what the actual problem is? I'm even not sure what "degrading" means in detail. Do you mean leaking memory or creating zombie threads?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!