Error on prees Video Source Button

Mar 4, 2010 at 9:05 PM

Really good work! But i have an error when i push the "Video Source" button.

System.AccessViolationException was unhandled

  Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
  Source="WebCam_Capture"
  StackTrace:
       at WebCam_Capture.WebCamCapture.SendMessage(Int32 hWnd, UInt32 Msg, Int32 wParam, Int32 lParam)
       at WebCam_Capture.WebCamCapture.Config2()
       at WinFormCharpWebCam.WebCam.AdvanceSetting() in D:\Repositorio Tolon\WinFormCharpWebCam\WinFormCharpWebCam\WebCam.cs:line 59
       at WinFormCharpWebCam.mainWinForm.bntVideoSource_Click(Object sender, EventArgs e) in D:\Repositorio Tolon\WinFormCharpWebCam\WinFormCharpWebCam\Form1.cs:line 60
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 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(Form mainForm)
       at WinFormCharpWebCam.Program.Main() in D:\Repositorio Tolon\WinFormCharpWebCam\WinFormCharpWebCam\Program.cs:line 18
       at System.AppDomain._nExecuteAssembly(Assembly 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)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

Can u help me? I develop with VS 2005 and 2008 and use a Logitech Orbit AF WebCamera
Thanks.