ArgumentException after closing

13 posts, 0 answers
  1. Anatoly Chekh
    Anatoly Chekh avatar
    86 posts
    Member since:
    Apr 2010

    Posted 02 Aug 2011 Link to this post

    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.
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 03 Aug 2011 Link to this post

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

  3. DevCraft banner
  4. Anatoly Chekh
    Anatoly Chekh avatar
    86 posts
    Member since:
    Apr 2010

    Posted 07 Oct 2011 Link to this post

    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.
  5. George
    Admin
    George avatar
    1332 posts

    Posted 12 Oct 2011 Link to this post

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

  6. Anatoly Chekh
    Anatoly Chekh avatar
    86 posts
    Member since:
    Apr 2010

    Posted 13 Oct 2011 Link to this post

    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.

  7. George
    Admin
    George avatar
    1332 posts

    Posted 18 Oct 2011 Link to this post

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

  8. Anatoly Chekh
    Anatoly Chekh avatar
    86 posts
    Member since:
    Apr 2010

    Posted 18 Oct 2011 Link to this post

    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.
  9. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 21 Oct 2011 Link to this post

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

  10. Anatoly Chekh
    Anatoly Chekh avatar
    86 posts
    Member since:
    Apr 2010

    Posted 24 Oct 2011 Link to this post

    Thanks a lot.
  11. Scott Rakestraw
    Scott Rakestraw avatar
    84 posts
    Member since:
    Sep 2005

    Posted 24 Feb 2012 Link to this post

    Is there any update on when this might be fixed?  I see that PITS has it listed as not scheduled.
  12. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 29 Feb 2012 Link to this post

    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 >>
  13. Kiran
    Kiran avatar
    17 posts
    Member since:
    Jun 2011

    Posted 08 Mar 2012 Link to this post

    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

  14. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 12 Mar 2012 Link to this post

    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 >>
Back to Top
DevCraft banner