View Full Version : two separate frame ready in separate class
September 6, 2008, 11:01:59
This is shankar i use two frameready function in my program in two of the dialog class , when i close first dialog class with out closing device by using closedev functon and execute the second dialoog class. i just want to know whether both frameready functions are callled or not .
September 8, 2008, 08:29:39
If the grabber object is a member of the dialog class and the dialog is closed and deleted, then the grabber object will be deleted too, thus the frameReady is no longer called. If the dialog is closed, but not deleted, then the grabber is not deleted and thus the frameReady can be called.
September 8, 2008, 12:01:16
Thank for ur kind reply i also made a test regarding this by using a count,
it will incremented whenever frame ready is called out .while displaying count after dialog is closed it will not show any increment , but device last function
in the same dialog class is active even if i close the dialog .can i know why its happen .
Thank for ur previous kind reply
September 8, 2008, 12:38:38
"device last" = "device lost"?
The message is set through Windows API to the dialog's window message loop. If the CListener object exists, then it can receive this message.
Thus: If you close the dialog, close the device too.
September 8, 2008, 13:11:45
Thank stefan for ur kind and valuable reply
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.