Forum Discussion

hema_dasari's avatar
Occasional Contributor
9 years ago

Getting "Cannot launch another instance of this application" error when launching the testcomplete

I used below code to launch Testcomplete using vbscript. Receivd popup information "Cannot launch another instance of this application"  , I didnt perform any action, and after sometime error "Object Required " at Line tcApp.Visible = True

Dim tcApp
const tcAppID="TestComplete.TestCompleteApplication"
On Error Resume Next
 tcApp = GetObject( , tcAppID)
If Err.Number <> 0 Then
    Set tcApp = CreateObject(tcAppID)
End If
On Error GoTo 0
tcApp.Visible = True



1 Reply

  • AlexKaras's avatar
    Champion Level 3



    The error means that there is already either TestComplete or TestExecute instance running in the system.


    GetObject() returns an object, so instead of

    tcApp = GetObject( , tcAppID)

    it must be

    Set tcApp = GetObject( , tcAppID)


    Also I would recommend to consider the code from the article.