ActiveX call (VB to Matlab) executed but doesn't return...sometimes 
Author Message
 ActiveX call (VB to Matlab) executed but doesn't return...sometimes

I have a VB app running from the IDE in Win95 that calls Matlab for some
{*filter*} number work. The code is essentially:

Dim Matlab as Object
Dim Result as String

Set Matlab = CreateObject("Matlab.Application")
Result = Matlab.Execute("myMatlabFile")

The program has worked for 10 months, and in December started{*filter*}
intermittently. I can tell from the Matlab code that it executes the
last line of myMatlabFile (save filename), yet I don't get a Result.
Rebooting fixes the problem, although it shows up every 20 or so runs.

I did a similar test using an Excel Macro to call Matlab, something like

for i=1 to 40
  Call Matlab.Execute("fprintf('%d',i);")

and again, sometimes the macro hung (at iteration 18-22), other times it
ran flawlessly.

Any clues are welcome and appreciated, please email to the address
below. My clients are killing me!!!

Thanks and best wishes

Tue, 06 Aug 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. sometimes he does it sometimes he doesn't

2. command.execute didn't get executed sometimes

3. Form_Load() doesn't execute, form doesn't load

4. Email text doesn't appear in sent items (sometimes)

5. Button.Focus() method doesn't work (sometimes)

6. Seek sometimes doesn't match record

7. TableDefs.Delete doesn't work sometimes

8. Function doesn't return an array in vb (Script) in Outlook

9. parameter doesn't return value to ASP or VB

10. Why Won't my ActiveX Control run(Sometimes)

11. Delphi can't call VB ActiveX Control's method

12. VC++ COM Callback doesn't work in VB ActiveX


Powered by phpBB® Forum Software