Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destructor overload #29

Open
GoogleCodeExporter opened this issue Sep 21, 2015 · 1 comment
Open

Destructor overload #29

GoogleCodeExporter opened this issue Sep 21, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Load video with grab() and retrieve()
2. Convert CV image to QImage (using QImage constructor)
3. Convert QImage to QPixmap
4. Display QPixmap on a QLabel
5. Add QLabel to QWidget (or whatever)
6. Execute application, then close the window

What is the expected output? What do you see instead?
Should close properly, but instead there is a memory error message.

What version of the product are you using? On what operating system?
pyopencv-2.1.0.wr1.1.0-py2.6 on Windows XP 32bits

Please provide any additional information below.
The only way I found to avoid this bug was to overload closeEvent() on my 
custom Widget to put a release(), which is un-pythonic.

Original issue reported on code.google.com by moo...@msn.com on 21 Oct 2010 at 2:22

@GoogleCodeExporter
Copy link
Author

Sorry for my late response. I've been too busy with work.

I'm not too sure if this is PyOpenCV's problem though. When you converted a CV 
image into a QImage, did both QImage and CV image share the same data? If so, 
did you have any guarantee that if the CV image is destroyed, the data is still 
preserved for the QImage?

Cheers,
Minh-Tri

Original comment by pmtri80@gmail.com on 7 Nov 2010 at 8:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant