Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

destroy a mousecallback

Hi everyone,

In an MFC application i sometimes have to start and stop my camera. The frames are displayed in a MFC picture control which is linked to an opencv Window. So far, so good. I used the mousecallback to perform some algorithms and it works

The only problem is that when i stop the camera and destroy the opencv window, the program bugs. I guess it's because i set the mousecallback on that windows which no longer exists. So my question is, how can i destroy the mousecallback?

Thanks beforehand =)

click to hide/show revision 2
retagged

updated 2014-05-21 02:17:28 -0600

berak gravatar image

destroy a mousecallback

Hi everyone,

In an MFC application i sometimes have to start and stop my camera. The frames are displayed in a MFC picture control which is linked to an opencv Window. So far, so good. I used the mousecallback to perform some algorithms and it works

The only problem is that when i stop the camera and destroy the opencv window, the program bugs. I guess it's because i set the mousecallback on that windows which no longer exists. So my question is, how can i destroy the mousecallback?

Thanks beforehand =)

destroy a mousecallback

Hi everyone,

In an MFC application i sometimes have to start and stop my camera. The frames are displayed in a MFC picture control which is linked to an opencv Window. So far, so good. I used the mousecallback to perform some algorithms and it works

The only problem is that when i stop the camera and destroy the opencv window, the program bugs. I guess it's because i set the mousecallback on that windows which no longer exists. So my question is, how can i destroy the mousecallback?

Thanks beforehand =)