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

PrintExtension crashes on element.Arrrange

1 Answer 36 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rick Glos
Top achievements
Rank 1
Rick Glos asked on 28 Sep 2010, 07:00 PM

Hello,

We are using the PrintExtensions class as mentioned in Vlad's post 9 months ago.

Our application is a WinForms app that has an ElementHost we use to load the control.  It has started crashing on the following line:

 

element.Arrange(new Rect(new Point(0, 0), element.DesiredSize));

It doesn't even throw an exception in Debug mode (F5), it just crashes to desktop.  We stepped through the code to identify where the exception occurs and found it on that line.  The only other thing I see is some first chance exceptions in the Debug Output window like so right after the exception occurs:

Step into: Stepping over non-user code 'System.Windows.Point.Point'
A first chance exception of type 'System.InvalidOperationException' occurred in PresentationFramework.dll
Step into: Stepping over non-user code 'System.Windows.Threading.ExceptionWrapper.TryCatchWhen'
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Step into: Stepping over non-user code 'System.Windows.RoutedEventArgs.InvokeEventHandler'
Step into: Stepping over non-user code 'System.Windows.RoutedEventArgs.InvokeHandler'
Step into: Stepping over non-user code 'System.Windows.UIElement.RaiseEventImpl'
Step into: Stepping over non-user code 'System.Windows.RoutedEventArgs.InvokeHandler'
Step into: Stepping over non-user code 'System.Windows.UIElement.ReRaiseEventAs'
Step into: Stepping over non-user code 'System.Windows.RoutedEventArgs.InvokeHandler'
Step into: Stepping over non-user code 'System.Windows.UIElement.RaiseEventImpl'
Step into: Stepping over non-user code 'System.Windows.UIElement.RaiseEvent'
Step into: Stepping over non-user code 'System.Windows.Threading.Dispatcher.InvokeImpl'
Step into: Stepping over non-user code 'System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop'
Step into: Stepping over non-user code 'System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner'
Step into: Stepping over non-user code 'SchedApp.SchedAppFrame.Dispose'
Step into: Stepping over non-user code 'System.ComponentModel.Component.Dispose'
Step into: Stepping over non-user code 'System.Windows.Forms.ApplicationContext.Dispose'
Step into: Stepping over non-user code 'System.Windows.Forms.Application.ThreadContext.DisposeThreadWindows'
Step into: Stepping over non-user code 'System.Windows.Forms.Application.ThreadContext.Dispose'

I'm not quite sure where to look for more information.  So the FrameworkElement coming into the FixedDocument is of type Telerik.Windows.Controls.RadGridView, is the Arrange method being overridden?  How would I troubleshoot what looks like an exception in the System.Windows.Point.Point structure?

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 04 Oct 2010, 08:58 AM
Hi Rick,

 Unfortunately I was unable to reproduce such problem and I've attached an example application using our latest binaries (Q2 2010 SP2) and the code from my blog post. 

All the best,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Rick Glos
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or