Random crashes when calling functions from a dll

I am experiencing crashes of Matlab when I call functions from an external dll (with calllib). What is especially weird is that all of these functions causing crashes actually work... from time to time. When I run my script containing the calls to functions, it can crash at one point, then I run Matlab again, run the script with the exact same input data, and it crashes at another function call, or even between function calls! There is no obvious crash pattern.
I cannot attach the dll itself but here are the header file and the script containing the calllibs, if it is of any help.

댓글 수: 3

And here is some debug info from Visual Studio... Looks like it comes from Matlab more than the dll
Did you ever find a solution to this? I'm having a similar issue.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

제품

릴리스

R2015b

질문:

2019년 7월 1일

댓글:

2023년 8월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by