I have a program in which I display a video feed in an OpenCV namedWindow(). The program allows me to click within the namedWindow, but if I try to move the window around on my desktop it triggers an error in convert.cpp reading
First-chance exception at 0x00D061A8 in AlcesSandboxApp.exe: 0xC0000005: Access violation reading location 0x44374050.
If there is a handler for this exception, the program may be safely continued.
Here is the line where I initialize the window:
namedWindow(wndDisplay, WINDOW_AUTOSIZE);
I have also tried using WINDOW_NORMAL. How should I create a namedWindow that will tolerate being moved?
UPDATE: Additional Code
//Display the new image
while(true){
//dispImg is a shared pointer that is updated in another thread.
cv::applyColorMap(dispImg, colorMat, colorMap);
imshow(wndDisplay, colorMat);
}