Prev: predci
Next: OutputEmptyFcn
From: Satish T on 28 Nov 2009 13:07 Hi, I am using C# with Matlab Automation Server Type Library. I have a global variable in the class holding the instance to the MLAppClass.. In the process, I invoke a seperate thread for running a time consuming task involving matlab. In that task I loop over several number of times and every time, i push some data into matlab, execute some commands, retrieve back the outputs generated. (Note that the MLAPClass global variable is created by the main thread). After 160 iterations, the MLAppClass started behaving weirdly. It can no more execute commands in matlab. Viewing the variable in Watch/Quick watch displays function evaluation timed out and nothing happens from there. I have created a new mlappclass variable in Secondary thread but no luck. I see com objects experience some problems in accessing over multiple threads. Can anyone help me out in fixing this issue? is there any other procedure that need to be followed when accessing the MLAPPClass over multiple threads? Code snippets would be very much helpful. Thanks, Satish
|
Pages: 1 Prev: predci Next: OutputEmptyFcn |