Already this is pretty stupid. I haven't done C++ in while so I'm expecting a huge face palm moment here. I can't believe I'm making a post. Anw...
So I have this insane complexe, multi layered, client server application that goes something like this :
#include <iostream>
int main()
{
std::cout << "I AM A BONANA!" << std::endl;
return 0;
}
#include <iostream>
int main()
{
std::cout << "I AM A BONANA!" << std::endl;
return 0;
}
To copy to clipboard, switch view to plain text mode
no includes, no nothing. Did you get the sarcasm there?
1. click RUN
2. I giggle
2. I see this message "Press <RETURN> to close this window..." and I'm thinking "Good at least I don't have to _getch() at the end of every console application"
3. Pressed <RETURN>
4. Console closes.
5. QT Environment's application output says : "Cannot obtain a handle to the inferior: The parameter is incorrect."
6. Like any good programer who doesn't know what to do I just find the nearest X to close the tab
7. Pop up window says "Application is still running. Force it to quit?" with a "Force Quit" button and a "Keep Running" button.
7.1. ????????????? WHY YOU NO CLOSED!?
So a added a break-point and launched the debugger. Guess what. I didn't get the application output message or the pop up window!
So I tried :
#include <iostream>
#include <cstdlib>
int main()
{
std::cout << "I AM A BONANA!" << std::endl;
std::exit(0);
}
#include <iostream>
#include <cstdlib>
int main()
{
std::cout << "I AM A BONANA!" << std::endl;
std::exit(0);
}
To copy to clipboard, switch view to plain text mode
aaaaaand it's still the same... 
PLease help. I promissss I'll be your bestest friend!
Bookmarks