on 04-17-2012 8:51 AM
I know that there are other threads for this problem (). But I have this error and need to make my application running.
I found where exceptions occurs in my code and I would like to suppress it. I use:
Catch ex As NullReferenceException When ex.TargetSite.Name = "OnMouseMove" And ex.TargetSite.ReflectedType.FullName = "CrystalDecisions.Windows.Forms.PageControl"
Is it specific enough? Is it safe?
Full code is (wpf DoEvents see http://msdn.microsoft.com/en-us/library/system.windows.threading.dispatcher.pushframe.aspx 😞
Public Shared Sub DoEvents()
Dim frame As New DispatcherFrame()
Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background, New DispatcherOperationCallback(AddressOf ExitFrame), frame)
Try
Dispatcher.PushFrame(frame)
Catch ex As NullReferenceException When ex.TargetSite.Name = "OnMouseMove" And ex.TargetSite.ReflectedType.FullName = "CrystalDecisions.Windows.Forms.PageControl"
End Try
End Sub
Public Shared Function ExitFrame(ByVal f As Object) As Object
CType(f, DispatcherFrame).Continue = False
Return Nothing
End Function
This issue was resolved in Service Pack 2. Latest SP is SP 3 now, so I'd recommend updating your install with that:
http://scn.sap.com/docs/DOC-7824
- Ludek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.