Hello everyone.

I try to create a simple console application with Visual C++ 2010 and QT 4.7.0.

I try to use the QTextStream class to write to the stdout stream.
Howevery, if the code
Qt Code:
  1. #include <QTCore>
  2.  
  3. int main(int argc, char** argv) {
  4. QTextStream out(stdout, QIODevice::WriteOnly);
  5. return 0;
  6. }
To copy to clipboard, switch view to plain text mode 
is executed, the application crashes on the 4th line with:
Qt Code:
  1. Unhandled exception at 0x77b08c19 in console.exe: 0xC0000005: Access violation writing location 0x00000014.
To copy to clipboard, switch view to plain text mode 

Does someone know this problem?

Thank you, Louis