Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
im getting this error randomly when i tried to start capturing of image from my webcam...
 
im currently try to make a simple face detection app which has a training for the faces and then saves the images to an XML file...
 
here is the stack trace of the error
 
   at Emgu.CV.CvInvoke.cvRetrieveFrame(IntPtr capture, Int32 streamIdx)
   at Emgu.CV.Capture.RetrieveBgrFrame(Int32 streamIdx)
   at Emgu.CV.Capture.QueryFrame()
   at Face_Detection.frmTrain.FrameGrabber(Object sender, EventArgs e)
   at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(ApplicationContext context)
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
   at Face_Detection.My.MyApplication.Main(String[] Args)
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
 
if you sir/s need more details of the error i can post the code i use...
 
thanks in advance sir..
Posted 25-Jan-13 23:11pm
Comments
Mike Meinz at 26-Jan-13 8:04am
   
I suspect that a parameter that you are passing is not properly initialized and the program is attempting to read or write to Address 000000 or some other protected location. A review of the source code is necessary to further investigate.
 
Do you set properties before calling QueryFrame? If so, it is probably one or more of those properties that is not properly initialized.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You'd be much better off asking your question in a forum that had many more useds of your library, such as here[^].
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 26 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid