none
COMPONENTE EXTERNO PRODUJO UNA EXCEPCION RRS feed

  • Pregunta

  • Buenas Tardes, estoy desarrollando un sistema para el liceo donde trabajo, se esta desarrollando bajo Windows 7.0.  y visual studio 2010, con manejo de Access 2016. Necesito Incorporar una Captura de una Fotografia a traves de una Camara Web, cuando pruebo la rutina sola sin que el sistema me la cargie funciona bien cuando intento incorporarl aal sistema me arroja el Error antes indicado,

    

    al Entrar a estudiante selecciono o agrego al estudiante 

    Al Seleccionar al estudiante 

    luego aqui llamo a la rutina para capturar la foto a traves de avicap32.dll

    Al darle Iniciar el debe comenzar a mostrar la imagen en el picturebox, y he aqui cuando me arroja el siguiente Error

    No se controló System.Runtime.InteropServices.SEHException

      ErrorCode=-2147467259
      HResult=-2147467259
      Message=Un componente externo produjo una excepción.
      Source=CentarldeEstudios
      StackTrace:
           en CentarldeEstudios.Form1.SendMessage(Int32 hwnd, Int32 wMsg, Int32 wParam, Object lParam)
           en CentarldeEstudios.Form1.OpenPreviewWindow() en C:\Cestudios\CentarldeEstudios\CentarldeEstudios\Form1.vb:línea 212
           en CentarldeEstudios.Form1.btnStart_Click(Object sender, EventArgs e) en C:\Cestudios\CentarldeEstudios\CentarldeEstudios\Form1.vb:línea 249
           en System.Windows.Forms.Control.OnClick(EventArgs e)
           en System.Windows.Forms.Button.OnClick(EventArgs e)
           en System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
           en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
           en System.Windows.Forms.Control.WndProc(Message& m)
           en System.Windows.Forms.ButtonBase.WndProc(Message& m)
           en System.Windows.Forms.Button.WndProc(Message& m)
           en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
           en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
           en System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
           en System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
           en System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
           en System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
           en System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
           en System.Windows.Forms.Application.RunDialog(Form form)
           en System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
           en System.Windows.Forms.Form.ShowDialog()
           en CentarldeEstudios.frmAgDatPersona.BtnFoto_Click(Object sender, EventArgs e) en C:\Cestudios\CentarldeEstudios\CentarldeEstudios\frmAgDatPersona.vb:línea 1244
           en System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
           en System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
           en System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
           en System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
           en System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
           en System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
           en System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
           en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
           en System.Windows.Forms.Control.WndProc(Message& m)
           en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
           en System.Windows.Forms.ToolStrip.WndProc(Message& m)
           en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
           en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
           en System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
           en System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
           en System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
           en System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
           en System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
           en System.Windows.Forms.Application.RunDialog(Form form)
           en System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
           en System.Windows.Forms.Form.ShowDialog()
           en CentarldeEstudios.frmDatosEstudiantes.Modificar_Click(Object sender, EventArgs e) en C:\Cestudios\CentarldeEstudios\CentarldeEstudios\frmDatosEstudiantes.vb:línea 129
           en System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
           en System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
           en System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
           en System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
           en System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
           en System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
           en System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
           en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
           en System.Windows.Forms.Control.WndProc(Message& m)
           en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
           en System.Windows.Forms.ToolStrip.WndProc(Message& m)
           en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
           en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
           en System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
           en System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
           en System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
           en System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
           en System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
           en System.Windows.Forms.Application.RunDialog(Form form)
           en System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
           en System.Windows.Forms.Form.ShowDialog()
           en CentarldeEstudios.CestMenuppal.ToolStripButton4_Click(Object sender, EventArgs e) en C:\Cestudios\CentarldeEstudios\CentarldeEstudios\CestMenuppal.vb:línea 302
           en System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
           en System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
           en System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
           en System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
           en System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
           en System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
           en System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
           en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
           en System.Windows.Forms.Control.WndProc(Message& m)
           en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
           en System.Windows.Forms.ToolStrip.WndProc(Message& m)
           en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
           en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
           en System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
           en System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
           en System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
           en System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
           en System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
           en Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
           en Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
           en Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
           en CentarldeEstudios.My.MyApplication.Main(String[] Args) en 17d14f5c-a337-4978-8281-53493378c1071.vb:línea 81
           en System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
           en System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
           en Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
           en System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           en System.Threading.ThreadHelper.ThreadStart()
      InnerException: 


    Jose Perdomo

    lunes, 15 de octubre de 2018 19:15

Todas las respuestas