PDA

View Full Version : "Cannot obtain a handle to the inferior: The parameter is incorrect."Error on Runtime



anwar.qt
11th April 2013, 13:29
I am trying to write unit test cases for our application using Qt test library. It was working fine till now. But when I am using some functions for testing. Application (Test Application) builds successfully but on Run it gives following Error :

"Cannot obtain a handle to the inferior: The parameter is incorrect." on first run. And on re-run application exits with exit code 0 without any error.

I want to what is meaning of the error "Cannot obtain a handle to the inferior: The parameter is incorrect."?
and Why this occurs?


I googled the problem and got some pointers but this doesn't lead to any conclusion.
Link : http://qt-project.org/forums/viewthread/21311

NOTE: If I remove the calls to functions I am testing the application runs perfectly. And functions belong belongs the library which is external and calls to other functions from same library working fine.