vb.net - Does Emgu.CV.Capture.QueryFrame leak memory? -
config: windows 10, visual studio 2015, project windows forms, vb, emgucv's opencv wrappers.
my project has reference emgu.cv.world
my code pretty simple (vb):
imports emgu.cv class form1 public gstop boolean async function dostuff() task dim cap new capture while gstop = false cap.queryframe() loop end function end class
when run dostuff in debugger, memory consumed 2gb, then:
exception thrown: 'emgu.cv.util.cvexception' in emgu.cv.world.dll
am right in thinking demonstrates memory leak? initial code did bit more captured video above code pared down try isolate leak. above code retrieve frame webcam , discard it, indefinitely. puzzles me because basic functionality emgu don't understand why hasn't been fixed , wonder if i've got wrong somewhere. haven't coded since vb6: used know onions less now.
Comments
Post a Comment