This is a migrated thread and some comments may be shown as answers.

ArgumentException after closing

12 Answers 117 Views
Window
This is a migrated thread and some comments may be shown as answers.
Anatoly Chekh
Top achievements
Rank 1
Anatoly Chekh asked on 02 Aug 2011, 08:58 AM
Hello.

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

Sort by
0
Yana
Telerik team
answered on 03 Aug 2011, 11:59 AM
Hello Anatoly,

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 >>

0
Anatoly Chekh
Top achievements
Rank 1
answered on 07 Oct 2011, 02:32 PM
Hello!

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.
0
George
Telerik team
answered on 12 Oct 2011, 01:24 PM
Hello Anatoly,

 
On BrowserWindowPresenter.OnMouseMove method we try to move the window if it is dragged. 


All the best,
George
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Anatoly Chekh
Top achievements
Rank 1
answered on 13 Oct 2011, 01:18 PM
Hello!

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.

0
George
Telerik team
answered on 18 Oct 2011, 09:38 AM
Hi Anatoly,

This could be an issue, related to the framework. I would suggest checking the Silverlight version and the operation system on the PC.

Regards,
George
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Anatoly Chekh
Top achievements
Rank 1
answered on 18 Oct 2011, 02:16 PM
Hello!

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.
0
Boyan
Telerik team
answered on 21 Oct 2011, 04:21 PM
Hello 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.

Greetings,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Anatoly Chekh
Top achievements
Rank 1
answered on 24 Oct 2011, 09:14 PM
Thanks a lot.
0
Scott Rakestraw
Top achievements
Rank 1
answered on 24 Feb 2012, 06:35 PM
Is there any update on when this might be fixed?  I see that PITS has it listed as not scheduled.
0
Boyan
Telerik team
answered on 29 Feb 2012, 07:32 PM
Hello,

This issue should be fixed in the latest official release. Could you please give it a try.

Kind regards,
Boyan
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Kiran
Top achievements
Rank 1
answered on 08 Mar 2012, 08:36 AM
Hi Boyan,

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

0
Boyan
Telerik team
answered on 12 Mar 2012, 12:38 PM
Hello,

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
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Window
Asked by
Anatoly Chekh
Top achievements
Rank 1
Answers by
Yana
Telerik team
Anatoly Chekh
Top achievements
Rank 1
George
Telerik team
Boyan
Telerik team
Scott Rakestraw
Top achievements
Rank 1
Kiran
Top achievements
Rank 1
Share this question
or