Crash When Dragging Tiles

3 posts, 0 answers
  1. Anthony
    Anthony avatar
    58 posts
    Member since:
    Aug 2011

    Posted 19 Aug 2014 Link to this post

    Hi,

    I am getting the following crash when trying to drag any tile. The strange thing is that I do not get the crash on my dev box but do once my app is released.

    Any help would be appreciated.

    Thanks
    Anthony

    The parameter value must be greater than zero.
    Parameter name: pixelWidth

    Stack Trace:: Void .ctor(Int32, Int32, Double, Double, System.Windows.Media.PixelFormat): 0
    : Void OnDragInitialized(System.Object, Telerik.Windows.DragDrop.DragInitializeEventArgs): 0
    : Void InvokeHandler(System.Delegate, System.Object): 0
    : Void InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean): 0
    : Void RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs): 0
    : Void StartDrag(): 0
    : Void StartDragPrivate(System.Windows.UIElement): 0
    : Void DragSourceOnMouseMove(System.Object, System.Windows.Input.MouseEventArgs): 0
    : Void InvokeHandler(System.Delegate, System.Object): 0
    : Void InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean): 0
    : Void RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs): 0
    : Void RaiseTrustedEvent(System.Windows.RoutedEventArgs): 0
    : Boolean ProcessStagingArea(): 0
    : Boolean ReportInput(System.Windows.Input.InputReport): 0
    : Boolean ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32): 0
    : IntPtr FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef): 0
    : IntPtr InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef): 0
    : IntPtr WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef): 0
    : System.Object DispatcherCallbackOperation(System.Object): 0
    : System.Object InternalRealCall(System.Delegate, System.Object, Int32): 0
    : System.Object TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate): 0
    : System.Object WrappedInvoke(System.Delegate, System.Object, Int32, System.Delegate): 0
    : System.Object InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32): 0
    : IntPtr SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr): 0
    : IntPtr DispatchMessage(System.Windows.Interop.MSG ByRef): 0
    : Void PushFrameImpl(System.Windows.Threading.DispatcherFrame): 0
    : Int32 RunInternal(System.Windows.Window): 0
    : Int32 Run(): 0
    c:\work\CMS\CMS\obj\Release\App.g.cs: Void Main(): 0

  2. Anthony
    Anthony avatar
    58 posts
    Member since:
    Aug 2011

    Posted 20 Aug 2014 in reply to Anthony Link to this post

    Hi,

    I found the issue.

    I added a DropShadowEffect to the Collapse icon on the Tile Header. On my VM with software rendering there was no issue. When I released the app to a PC the hardware rendering was crashing it.

    The weird thing is that the DropShadowEffect on the Restore icon does not cause the crash.

    Thanks
    Anthony



                                         <!--<Rectangle.Effect>
                                            <DropShadowEffect BlurRadius="3" ShadowDepth="2"/>
                                        </Rectangle.Effect>-->

  3. UI for WPF is Visual Studio 2017 Ready
  4. Anthony
    Anthony avatar
    58 posts
    Member since:
    Aug 2011

    Posted 20 Aug 2014 in reply to Anthony Link to this post

    Hi,

    I have solved this now.

    In the Maximize / Restore RadToggleButton style, I removed the default collapsed visibility of the Collapse grid. This gets set by the Visual States anyway.

    Thanks
    Anthony
Back to Top