Error when running a mex function: 'A dynamic link library (DLL) initialization routine failed.'
显示 更早的评论
I have some C/C++ code that is compiled to mex and getting it to run in Matlab (2017a and 2018a) is a complete hit or miss. The error is 'A dynamic link library (DLL) initialization routine failed.' I have run dependancy walker on this in multiple ways and fail to recognize what the issue is. As I mentioned, it works some times and doesn't on other occasions. Currently, my only guess is to restart Matlab to the point where it works, or restart the system towards the same effect.
Any help will be appreciated. I have scoured the internet for solutions as to how to identify the issue and mitigate it.
1 个评论
James Tursa
2018-8-15
Can you post a small code example that produces the problem?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!