Forum Discussion

yingkai1208's avatar
yingkai1208
Contributor
12 years ago

TestComplete stops working when execute CreateObject("Excel.Application")

Hi, 



The TestComplete stops working when execute the following code:



Dim objExcel

Set objExcel = CreateObject("Excel.Application") 



TestComplete just stops working and does not have respond. I tried to click the button Stop, but it does not take effect.



I have been using the above snippet for a couple of months, and it works in majority of cases. During the months, I encountered the issue twice. The issue could be solved if I reboot the machine.



Any suggestions will be quite apprecriated.



Cheers.



kai

1 Reply


  • Hi Kai,


     


    As the issue occurs randomly, it's difficult to say for sure why it could happen. What TestComplete version are you using? Can you allocate when exactly the issue appears? Perhaps, it happens only after executing a certain number of tests.