フィルターのクリア

Deployed DLL with embedded .mat file failed to LOAD file on runt-time

1 回表示 (過去 30 日間)
Rajeev Yadav
Rajeev Yadav 2020 年 3 月 16 日
コメント済み: Rajeev Yadav 2020 年 3 月 17 日
We made a DLL to be used with a C# application. The DLL has be created with a dependency (.MAT file) that is attached with the DLL. On particular instance, the mat file is load during the function call. However, in some instance, we got errors which as per our error handling (Try catch statements) reveal that it was unable to load the MAT file.
How can we make the call more robust? How to prevent such issues? We do not want to disclose the content of the MAT file. Please advice.
  5 件のコメント
Mohammad Sami
Mohammad Sami 2020 年 3 月 17 日
I meant you can put in a permanent directory, perhaps C:\install\abc.mat. You can then load it from the fixed location easily.
If you wish to debug, you can print out "pwd" in the log to see which folder the dll is taking as working directory. It maybe the same directory as the location of dll file. In that case you can place the mat file in the same location as the dll file.
Rajeev Yadav
Rajeev Yadav 2020 年 3 月 17 日
Thats a great idea. But I do not want to reveal the information in the mat file. If there is way to encrypt ... if yes, then I can provide a static path.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Compiler SDK についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by