class cannot be found!

4 ビュー (過去 30 日間)
Seyedfarid Ghahari
Seyedfarid Ghahari 2017 年 3 月 9 日
Hi everyone,
I am using .net to run multiple instances of an application inside parfor. After defining application path and dll and adding dll to the assembly as:
ProgramPath = 'C:\...\application.exe';
APIDLLPath = 'C:\...\application.dll';
a = NET.addAssembly(APIDLLPath);
I have this parfor loop:
parfor l=1:4
helper{l} = application.Helper;
end
It works well in "for" loop, but does not run in "parfor". First problem was due to employing "structure" inside parfor. However, even if I assign "application.Helper" to a temp variable outside the parfor and call that variable inside the parfor, I get error as:
"Cannot load an object of class 'Helper':Its class cannot be found."
I appreciate if anybody can help.

回答 (0 件)

カテゴリ

Help Center および File ExchangeParallel for-Loops (parfor) についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by