Click here to Skip to main content
13,506,556 members
Rate this:
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
Mike Meinz 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
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[^].

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.180417.1 | Last Updated 26 Jan 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100