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

Crash When Dragging Tiles

2 Answers 48 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Veteran
Anthony asked on 20 Aug 2014, 02:08 AM
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 Answers, 1 is accepted

Sort by
0
Anthony
Top achievements
Rank 1
Veteran
answered on 21 Aug 2014, 12:51 AM
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>-->

0
Anthony
Top achievements
Rank 1
Veteran
answered on 21 Aug 2014, 01:03 AM
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
Tags
TileView
Asked by
Anthony
Top achievements
Rank 1
Veteran
Answers by
Anthony
Top achievements
Rank 1
Veteran
Share this question
or