Why does my library built with Application Compiler crash due to undefined function 'pathdef'?
3 次查看(过去 30 天)
显示 更早的评论
I am building a .Net class library dll which wraps some Matlab functions in .m files. The build completes and the .dll is produced. I can reference the DLL in a .Net project, but when the project runs, I see these errors in the debugger:
%
'Example1.exe' (CLR v4.0.30319: Example1.exe):
Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\MWArray\v4.0_2.17.1.0__e1d84a0da19db86f\MWArray.dll'.
Undefined function or variable 'pathdef'.
Error in startup (line 1)
Exception thrown: 'System.ApplicationException' in MWArray.dll
Exception thrown: 'System.Exception' in MWArray.dll
and the class doesn't load. My scripts do not call pathdef. What is wrong?
0 个评论
回答(1 个)
Sindhu Yerragunta
2018-5-3
Hi Morris,
Try executing the following commands from MATLAB command prompt,
restoredefaultpath % This will remove any custom paths
rehash toolboxcache
savepath
and refer the following link for more information regarding the same error,
Hope this helps.
- Sindhu
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!