l= -1
r = -1
t= -1
b = -1

Result = Window("e-MarkerŪ CMI+ Admin (DRS").WinObject("Object").GetTextLocation("Compon ents", l,r,t,b)

If not result Then
Msgbox "Fail"
Msgbox "Pass"
End If

While executing the above script in Window 7 (32 bit- QTP 9.5). System is restarting.. I could not able to resolve the issue.

Please help me on this to get sorted out??