Sometimes I have an error after closing dialog:
System.ArgumentException:
в MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
в MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)
в MS.Internal.XcpImports.UIElement_TransformToVisual(UIElement element, UIElement visual)
в Telerik.Windows.Controls.ApplicationHelper.TransformToScreenRoot(UIElement target)
в Telerik.Windows.Controls.VisualTreeHelperExtensions.GetElementsInHostCoordinates[T](UIElement subtree, Point localPosition)
в Telerik.Windows.Controls.InternalWindow.BrowserWindowPresenter.HitTest(Point globalMousePosition, Rect[] rects)
в Telerik.Windows.Controls.InternalWindow.BrowserWindowPresenter.OnMouseMove(Object sender, MouseEventArgs e)
в MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
в MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
Is this a bug or how can I fix it?
Thanks, Anatoly Chekh.
12 Answers, 1 is accepted
Could you please give us some more information about your scenario? Some sample code will be of great help to find the reason for this issue.
Also can you try the latest internal build (2011.2.0801) and let us know the result? Thanks
Greetings,
Yana
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
We got this error again on SP Q2 2011.
We have simple modal dialog based on radwindow. It opens and then close by clicking button in the content, From exception stack trace It seems like we move mouse over dialog but when action mouse move execute dialog has been alreaydy closed.
Unfortunately, it happens hardly ever and only on some PC.
Can you give me explanation what this method (BrowserWindowPresenter.OnMouseMove) have to do and may be then I can give you more information about this issue.
Thanks, Anatoly Chekh.
On BrowserWindowPresenter.OnMouseMove method we try to move the window if it is dragged.
George
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
1) But this exception is occured after we close window, (We click buttton, set DialogResult to true or false, and call Close method).
2) We dont drag window, we only press button.
May be after mouse up (and closing dialog) BrowserWindowPresenter.OnMouseMove invoked?
Thanks, Anatoly.
This could be an issue, related to the framework. I would suggest checking the Silverlight version and the operation system on the PC.
George
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
1. Windows 7, Sl 4.0.60831.0, Browser FireFox (hardly ever)
2. Windows server 2008, Sl 4.0.60310.0,Browser FireFox (sometimes)
Thanks, Anatoly Chekh.
We managed to reproduce the error. I blocked the UIThread for a while so the RadWindow is closed slower and then made another click on the RadWindow that caused the error. We have logged the issue in PITS, you can follow its progress here.
Please, excuse us for the inconvenience. We have added points to your account for the report. Don't hesitate to contact us if you have other questions.
Boyan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
This issue should be fixed in the latest official release. Could you please give it a try.
Kind regards,
Boyan
the Telerik team
As per your suggestion I downloaded new trial version of telerik.(2012.1.215.1050). But, after adding it to my project it gives lots of error for :
Telerik.Windows.Controls;
Telerik.Windows.Documents.Model;
WindowPreviewClosedEventArgs
And likewise.
Thanks in advance.
Please help.
- Kiran
Usually when an error about Telerik.Windows.Controls.dll is thrown this means that you have binaries with different versions. Make sure that all of the binaries are with the same version and also after adding the new references clean the project and delete its bin and obj folders as sometimes the project caches some of the binaries and this results in conflicts.
If this doesn't help could you please send us the whole errors so we can help.
All the best,
Boyan
the Telerik team