Welcome Guest Search | Active Topics | Sign In | Register

Nullpointerexception on PreviewMouseDown Options
JOERIDDM
Posted: Wednesday, October 23, 2019 12:09:06 PM
Rank: Newbie
Groups: Member

Joined: 6/20/2017
Posts: 8
Dear EO support,

I've just updated from EO.Webbrowser version 17.2.14.0 to 19.2.91.0 in a particular wpf project.
Each time I click inside the browser window I now get the NullPointerException at the bottom of this message.
I have made invisible the other party's library name due to privacy reasons(I don't want to drop it on an open forum for everyone to see)
The only thing I've changed to the project are the EO libraries.

- EO.Base
- EO.WebBrowser
- EO.WebBrowser.Wpf
- EO.WebEngine
- EO.Wpf

Got any idea what could cause this? Got any solution or workaround?

In case you've got any additional questions feel free to ask.

Thanks in advance for your reply.

Kind regards,
Joeri Biermans
DDM Consulting


System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=***************
StackTrace:
at*********_PreviewMouseDown(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at EO.Wpf.WebViewHost.a.a(MouseEventArgs A_0, RoutedEvent A_1)
at EO.Wpf.WebViewHost.a.a(Int32 A_0, MouseButton A_1, RoutedEvent A_2, Boolean A_3)
at EO.Wpf.WebViewHost.a.a(c A_0, Boolean A_1)
at EO.Wpf.WebViewHost.a.a(c A_0)
at EO.WebBrowser.WebView.g.a(UInt32 A_0, IntPtr A_1, IntPtr A_2, Boolean& A_3)
at EO.WebBrowser.WebView.i.a(IntPtr A_0, Int32 A_1, IntPtr A_2, IntPtr A_3, Boolean& A_4)
at EO.Internal.x.b(IntPtr A_0, Int32 A_1, IntPtr A_2, IntPtr A_3, Boolean& A_4)
at EO.Internal.x.b(IntPtr A_0, Int32 A_1, IntPtr A_2, IntPtr A_3)
eo_support
Posted: Wednesday, October 23, 2019 12:37:03 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
Hi,

The NullReferenceException occurs in your own PreviewMouseDown event handler. This is your code, so you will need to troubleshoot that part in order to find out the root of the problem.

V2019 routes input events very differently than V2017. That's probably why the same code does not cause any problem in V2017 but does cause problem in V2019. This articles explains how V2019 routes input events in detail:

https://www.essentialobjects.com/doc/webbrowser/advanced/input_events.aspx

Thanks!
JOERIDDM
Posted: Wednesday, October 23, 2019 12:44:04 PM
Rank: Newbie
Groups: Member

Joined: 6/20/2017
Posts: 8
Hey,

Thanks for the tip.
I'll implement such a filter and see if I can get it to work again.

Have a nice day!

Kind regards,
Joeri Biermans
DDM Consulting
JOERIDDM
Posted: Thursday, October 24, 2019 4:05:12 AM
Rank: Newbie
Groups: Member

Joined: 6/20/2017
Posts: 8
Hey,

Just to let you know it works now. Sorry to bother you. Next time I spend more time reading the release notes.
Case closed.

Thanks!

Kind regards,
Joeri
eo_support
Posted: Thursday, October 24, 2019 9:48:28 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
Glad to hear that it's working for you now!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.