Hello everyone,

I have a problem with using the QFileDialog class. When I want to open such a dialog my program crashes.

Qt Code:
  1. QString filename = QFileDialog::getOpenFileName(this, "Choose a file", "", "oi.xml (*.oi.xml)"); //static call
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. dlg.exec(); //instance call
To copy to clipboard, switch view to plain text mode 

The crash also occurs when I run Qt's "findfiles" example (I started findfiles.exe within Qt Creator and I clicked the "Browse"-Button).

The crash only appears in release mode (regardless of running the program from within Qt Creator or directly), not in debug mode and only when I use the compiler "Microsoft Visual C++ Compiler 12.0 (x86_amd64)". When I use "Microsoft Visual C++ Compiler 12.0 (x86_amd64)" or "MinGW 4.9.2 32bit" everything is fine. In my program I have to use that compiler because of an external library that only runs on Windows systems and includes "windows.h".

For those who know CloudCompare: I have installed the 64bit version of CloudCompare and I have the same problems there (as far as I know CloudCompare also uses Qt). On another machine where Qt is not installed the problem does not occur.

Has anyone got any idea what could cause the problem ?

Thanks in advance.