FatalExecutionEngineError was detected in TabControl for VB.NET

Discussion in 'Microsoft VB .NET' started by Dennis Macdonald, Nov 7, 2011.

  1. I have a standard VB.NET (Version 4) tabcontrol and doing nothing more
    than clicking between the tabs (note no code of my own is run during
    this) and after clicking a few times I get the dreaded
    'FatalExecutionEngineError'.

    Please help?

    Full error is:

    FatalExecutionEngineError was detected
    Message: The runtime has encountered a fatal error. The address of the
    error was at 0x54108090, on thread 0x2194. The error code is
    0xc0000005. This error may be a bug in the CLR or in the unsafe or non-
    verifiable portions of user code. Common sources of this bug include
    user marshaling errors for COM-interop or PInvoke, which may corrupt
    the stack.

    Below is the call stack:

    System.Drawing.dll!System.Drawing.Graphics.Clip.get() + 0x12 bytes
    System.Drawing.dll!System.Drawing.Graphics.GetContextInfo() + 0x12
    bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Internal.WindowsGraphics.FromGraphics(System.Drawing.Graphics
    g, System.Windows.Forms.Internal.ApplyGraphicsProperties properties) +
    0x46 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.WindowsGraphicsWrapper.WindowsGraphicsWrapper(System.Drawing.IDeviceContext
    idc, System.Windows.Forms.TextFormatFlags flags) + 0x9b bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.VisualStyles.VisualStyleRenderer.DrawParentBackground(System.Drawing.IDeviceContext
    dc, System.Drawing.Rectangle bounds, System.Windows.Forms.Control
    childControl) + 0x88 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.ButtonRenderer.DrawParentBackground(System.Drawing.Graphics
    g, System.Drawing.Rectangle bounds, System.Windows.Forms.Control
    childControl) + 0x76 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Control.PaintTransparentBackground(System.Windows.Forms.PaintEventArgs
    e, System.Drawing.Rectangle rectangle, System.Drawing.Region
    transparentRegion) + 0x2bd bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Control.PaintBackground(System.Windows.Forms.PaintEventArgs
    e, System.Drawing.Rectangle rectangle, System.Drawing.Color backColor,
    System.Drawing.Point scrollOffset) + 0x108 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Control.PaintBackground(System.Windows.Forms.PaintEventArgs
    e, System.Drawing.Rectangle rectangle) + 0x61 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Control.OnPaintBackground(System.Windows.Forms.PaintEventArgs
    pevent) + 0x59 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Control.PaintWithErrorHandling(System.Windows.Forms.PaintEventArgs
    e, short layer) + 0x78 bytes
    System.Windows.Forms.dll!System.Windows.Forms.Control.WmPaint(ref
    System.Windows.Forms.Message m) + 0x311 bytes
    System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref
    System.Windows.Forms.Message m) + 0x2b1 bytes
    System.Windows.Forms.dll!System.Windows.Forms.Label.WndProc(ref
    System.Windows.Forms.Message m) + 0x2c bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref
    System.Windows.Forms.Message m) + 0x13 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref
    System.Windows.Forms.Message m) + 0x31 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr
    hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) + 0x64
    bytes
    [Native to Managed Transition]
    [Managed to Native Transition]
    System.Windows.Forms.dll!
    System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(System.IntPtr
    dwComponentID, int reason, int pvLoopData) + 0x287 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int
    reason, System.Windows.Forms.ApplicationContext context) + 0x16c
    bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int
    reason, System.Windows.Forms.ApplicationContext context) + 0x61 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Application.RunDialog(System.Windows.Forms.Form
    form) + 0x33 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window
    owner) + 0x38f bytes
    System.Windows.Forms.dll!System.Windows.Forms.Form.ShowDialog() +
    0x7 bytes
    > TimeGuardian.exe!TimeGuardian.frmAdmin.RibbonOrbMenuItemOptions_Click(Object sender, System.EventArgs e) Line 1062 + 0x26 bytes Basic

    System.Windows.Forms.Ribbon.dll!
    System.Windows.Forms.RibbonItem.OnClick(System.EventArgs e) Line 692 +
    0x1a bytes C#
    System.Windows.Forms.Ribbon.dll!
    System.Windows.Forms.RibbonButton.OnClick(System.EventArgs e) Line
    1000 + 0xb bytes C#
    System.Windows.Forms.Ribbon.dll!
    System.Windows.Forms.RibbonItem.OnMouseDown(System.Windows.Forms.MouseEventArgs
    e) Line 627 + 0x11 bytes C#
    System.Windows.Forms.Ribbon.dll!
    System.Windows.Forms.RibbonButton.OnMouseDown(System.Windows.Forms.MouseEventArgs
    e) Line 944 + 0xb bytes C#
    System.Windows.Forms.Ribbon.dll!
    System.Windows.Forms.RibbonMouseSensor.Control_MouseDown(object
    sender, System.Windows.Forms.MouseEventArgs e) Line 490 + 0x1e bytes
    C#
    System.Windows.Forms.dll!
    System.Windows.Forms.Control.OnMouseDown(System.Windows.Forms.MouseEventArgs
    e) + 0x7c bytes
    System.Windows.Forms.Ribbon.dll!
    System.Windows.Forms.RibbonOrbDropDown.OnMouseDown(System.Windows.Forms.MouseEventArgs
    e) Line 460 + 0xb bytes C#
    System.Windows.Forms.dll!
    System.Windows.Forms.Control.WmMouseDown(ref
    System.Windows.Forms.Message m, System.Windows.Forms.MouseButtons
    button, int clicks) + 0xdb bytes
    System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref
    System.Windows.Forms.Message m) + 0x923 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref
    System.Windows.Forms.Message m) + 0x13 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref
    System.Windows.Forms.Message m) + 0x31 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr
    hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) + 0x64
    bytes
    [Native to Managed Transition]
    [Managed to Native Transition]
    System.Windows.Forms.dll!
    System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(System.IntPtr
    dwComponentID, int reason, int pvLoopData) + 0x287 bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int
    reason, System.Windows.Forms.ApplicationContext context) + 0x16c
    bytes
    System.Windows.Forms.dll!
    System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int
    reason, System.Windows.Forms.ApplicationContext context) + 0x61 bytes
    Microsoft.VisualBasic.dll!
    Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
    + 0x96 bytes
    Microsoft.VisualBasic.dll!
    Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
    + 0x10a bytes
    Microsoft.VisualBasic.dll!
    Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(string[]
    commandLine) + 0x319 bytes
    [Native to Managed Transition]
    [Managed to Native Transition]
    mscorlib.dll!
    System.AppDomain.nExecuteAssembly(System.Reflection.RuntimeAssembly
    assembly, string[] args) + 0x9 bytes
    mscorlib.dll!System.Runtime.Hosting.ManifestRunner.Run(bool
    checkAptModel) + 0x6e bytes
    mscorlib.dll!
    System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly() + 0x90
    bytes
    mscorlib.dll!
    System.Runtime.Hosting.ApplicationActivator.CreateInstance(System.ActivationContext
    activationContext, string[] activationCustomData) + 0x65 bytes
    mscorlib.dll!
    System.Runtime.Hosting.ApplicationActivator.CreateInstance(System.ActivationContext
    activationContext) + 0xd bytes
    mscorlib.dll!
    System.Activator.CreateInstance(System.ActivationContext
    activationContext) + 0x44 bytes
    Microsoft.VisualStudio.HostingProcess.Utilities.dll!
    Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
    + 0x23 bytes
    mscorlib.dll!
    System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x63
    bytes
    mscorlib.dll!
    System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext
    executionContext, System.Threading.ContextCallback callback, object
    state, bool ignoreSyncCtx) + 0xb0 bytes
    mscorlib.dll!
    System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext
    executionContext, System.Threading.ContextCallback callback, object
    state) + 0x2c bytes
    mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44
    bytes
     
    Dennis Macdonald, Nov 7, 2011
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. André Nogueira

    Creating my own Tabcontrol-like control in VB.Net

    André Nogueira, Aug 20, 2004, in forum: Microsoft VB .NET
    Replies:
    7
    Views:
    2,665
    joshwd36
    Mar 25, 2011
  2. ChrisK
    Replies:
    8
    Views:
    633
    Peter Proost
    Nov 4, 2004
  3. vb.net tabcontrol images

    , Mar 17, 2005, in forum: Microsoft VB .NET
    Replies:
    2
    Views:
    608
  4. Mike
    Replies:
    0
    Views:
    1,004
  5. Mike
    Replies:
    0
    Views:
    222
Loading...

Share This Page