VST 2.4 and OpenCV (imshow)

I am trying to use the OpenCV libraries in a VST plug in on the Cubase platform for windows 8.1. I have got the libraries compiling and I can reference the functions. However, the imshow function causes a runtime error, of the flavor, “this application has requested the runtime to terminate it in an unusual way”

the code snippet follows?
Mat image;
image = imread(/argv[1]“opencv-logo-png.bmp”/“bitmap3.bmp”, IMREAD_COLOR); // Read the file

if(! image.data ) // Check for invalid input
//cout << “Could not open or find the image” << std::endl ;
//return -1;

namedWindow( “Display window”, WINDOW_NORMAL ); // Create a window for display.
imshow( “Display window”, image ); // Show our image inside it.
Does anyone have a clue as to what might be going on here?
You will notice that I have tried png as well as bmp image files.