Micro Focus QTP (UFT) Forums
Error when exiting windows application - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Error when exiting windows application (/Thread-Error-when-exiting-windows-application)



Error when exiting windows application - qtpbegin - 07-21-2012

Hi

I am automating a windows application using QTP.
This QTP automation script(second script) is calling from another QTP script (first script) using RunAction Command.
When the second script (calling by RunAction)is over, I will close the exe in the last line of the script which is throwing an error
"An existing connection was forcibly closed by the remote host Line(20):"SwfWindow("mainwindow").SwfToolbar("mainMenuStrip").Select "Reader;Exit"".
I know none of my applications using this exe other than QTP.
If I skip this error QTP will continue.
Can anyone suggest a solution for this.