Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed NullReferenceException on ControlExtensions.IsActiveControl call #1132

Merged
merged 1 commit into from
Jul 21, 2015

Conversation

RomanDidenko
Copy link

Fixes NullReferenceException exception when browser control is removed from a form but not disposed as should be added back to the form at some point of time:

Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
Stack:
   at CefSharp.WinForms.Internals.ControlExtensions.IsActiveControl(System.Windows.Forms.Control)
   at CefSharp.WinForms.Internals.ParentFormMessageInterceptor.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
   at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG ByRef, System.Runtime.InteropServices.HandleRef, Int32, Int32, Int32)
   at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
   at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
   at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
   at System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
   at Lombard.UserInterface.Shell.Program.Main()

Windows 7, x86

@amaitland amaitland added this to the 41.0.1 milestone Jul 21, 2015
@amaitland
Copy link
Member

Great, thanks 👍

Looks straight forward, merging now 😄

amaitland added a commit that referenced this pull request Jul 21, 2015
Fixed NullReferenceException on ControlExtensions.IsActiveControl call
@amaitland amaitland merged commit 2df956e into cefsharp:cefsharp/41 Jul 21, 2015
@amaitland
Copy link
Member

New package pushed to nuget.org

@Roman-Didenko
Copy link

Great, thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants