Window QT - Crash when window closed (Bug #534)


Added by Niall O'Hara over 14 years ago. Updated over 12 years ago.


Status:Done Start date:
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:highgui-gui
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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);


Associated revisions

Revision 48090fd3
Added by Yannick Verdie over 14 years ago

Qt bug fixed #534

Revision f783f34e
Added by Andrey Kamaev about 12 years ago

Merge pull request #534 from emchristiansen:c++11

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

Also available in: Atom PDF