Qt Creator crashes when trying to run an OpenCV program. [ntdll.dll crash]

  • I have QT Creator 3.2.2 for windows. I am using mingw-x64 with gcc/g++ - 4.9.1 as my compiler/debugger. I used Cmake to build the libraries.

    Currently, am trying to run this code :

    @#include <core/cvstd.hpp>
    #include <core/mat.hpp>
    #include <core/types.hpp>
    #include <core.hpp>
    #include <cstdlib>
    #include <highgui.hpp>
    #include <imgproc.hpp>
    #include <iostream>
    #include <sys/types.h>
    #include <vector>
    #include <video/background_segm.hpp>

    using namespace cv;

    int main(int argc, char *argv[])
    Mat image = imread("C:\Users\John\Desktop\Random\QtTrySimple\Try\bgm.jpeg");
    imshow("LOL", image);

    But the program crashes with a 'Critical error detected c0000374'. From what I understand this error indicates a memory leak on the heap.

    Also, here is the stack when it crashes:
    0 ntdll!RtlUnhandledExceptionFilter C:\Windows\SYSTEM32\ntdll.dll 0x775b40d0
    1 ntdll!EtwEnumerateProcessRegGuids C:\Windows\SYSTEM32\ntdll.dll 0x775b4746
    2 ntdll!RtlQueryProcessLockInformation C:\Windows\SYSTEM32\ntdll.dll 0x775b5952
    3 ntdll!RtlLogStackBackTrace C:\Windows\SYSTEM32\ntdll.dll 0x775b7604
    4 ntdll!RtlIsDosDeviceName_U C:\Windows\SYSTEM32\ntdll.dll 0x7755dc47 @

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.