Window QT - Crash when window closed (Bug #534)
Description
When you close either window (Click on X), the program crashes, in a normal window manager the window just re-opens on the next frame of playback.
[[CvCapture]]* video = cvCaptureFromFile("../../cube4.avi"); CV_Assert(video); namedWindow("Input", CV_WINDOW_AUTOSIZE | CV_WINDOW_FREERATIO); namedWindow("Output", CV_WINDOW_AUTOSIZE | CV_WINDOW_FREERATIO); [[IplImage]]* source = 0; while(cvWaitKey(33) != 27) { source=cvQueryFrame(video); cvShowImage("Input",source); cvShowImage("Output",source); } cvReleaseCapture(&video);
crashes on this line of code in window_QT (line 1697)
if (global_control_panel->myLayout->count() == 0)
vect_QActionsr9->setDisabled(true);
History
Updated by anonymous - over 14 years ago
Hello,
Your are right.
That should be fixed now. However, with this current implementation, the user have to destroy the window at the end (cvDestroyWindow("blabla") or cvDestroyAllWindow()) to be sure the memory is released.
Yannick
Updated by Niall O'Hara over 14 years ago
Confirmed Fixed and Closed.
- Status changed from Open to Done
- (deleted custom field) set to fixed
Updated by Andrey Kamaev almost 13 years ago
- Category set to highgui-images
Updated by Andrey Kamaev over 12 years ago
- Assignee deleted (
Yannick Verdie) - Category changed from highgui-images to highgui-gui