Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

VB
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
Comments
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

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900