Prev: Webserver certificate
Next: EnterpriseLibrary
From: Thomas on 18 Jul 2006 05:45 sorry I have already post this topic but in bad subject :$ ==> message : hello, it's my first post in microsoft newsgroup and Im french.... I am developping an application which can take photos from a webcam with WIA and send it to a ftp. but I saw one big bug => all photos taken from webcam have been saved to svchost svchost become big => more than 100mo if I let the program run I don't know how to release memory I have tried to release memory : ----------------------------------------------------------------------------------------- item.ExecuteCommand(WIA.CommandID.wiaCommandDeleteAllItems); item = video.Device.ExecuteCommand(WIA.CommandID.wiaCommandDeleteAllItems); ----------------------------------------------------------------------------------------- and to capture some image : ----------------------------------------------------------------------------------------- item = video.Device.ExecuteCommand(WIA.CommandID.wiaCommandTakePicture); imagefile = item.Transfer(WIA.FormatID.wiaFormatBMP) as WIA.ImageFile; imagefile.SaveFile("./" + bmpf); imagefile = null; ----------------------------------------------------------------------------------------- item as WIA.Item imagefile as WIA.ImageFile video as AxWIA.AxVideoPreview thanks I hope you able to help me
|
Pages: 1 Prev: Webserver certificate Next: EnterpriseLibrary |