Win7, VS2013, QT 5.4

#include <QtWidgets\QtWidgets> #include <QtMultimedia\QCameraInfo> #pragma comment(lib, "Qt5Widgets.lib") #pragma comment(lib, "Qt5Multimedia.lib") #pragma comment(lib, "Qt5Core.lib") int main(int argc, char* argv[]) { QApplication app(argc, argv); QList<QCameraInfo> cameras = QCameraInfo::availableCameras(); QDialog dlg; dlg.show(); return app.exec(); } 

The dialog starts and shows, but when it is closed, I get _block_type_is_valid in the debugger. In the console window is empty. If you remove the QList<QCameraInfo> cameras ... - everything is ok. I can not understand what I'm doing wrong :-(

UPD1 : crashes only if the camera is connected.

  • Check on a different version of Qt / compiler. Perhaps just a bug. - 伪位蔚蠂慰位蠀蟿
  • @alexolut it turned out that it crashes only if the camera is connected. Without a camera, everything is in order. - Vladimir Martyanov
  • and the other versions could check? - 伪位蔚蠂慰位蠀蟿
  • @alexolut Without a camera, they did not fall, so I will drag the camera after the holidays ... - Vladimir Martyanov
  • those. with camera crashes on different versions of qt and compiler? - 伪位蔚蠂慰位蠀蟿

0