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

App crashes on load in Windows 7 (64-bit)

3 Answers 126 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 29 Dec 2011, 07:14 PM
Telerik.ReportViewer.WinForms (v. 3.0.9.430)

I get the error listed below when loading an app I built in Windows 7 64bit.  I can run this same app in a Win7 (64bit) VM without issue. This causes the app to crash.  Is this a build issue?

This dump was captured using DebugView (http://technet.microsoft.com/en-us/sysinternals/bb896647 )

<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>ColonialFence.exe</AppDomain><Exception><ExceptionType>System.NullReferenceException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Object reference not set to an instance of an object.</Message><StackTrace>   at Telerik.ReportViewer.WinForms.WinViewer.UpdateScrollSize() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\WinViewer.cs:line 817
00000331 10.12580299 [2964]    at Telerik.ReportViewer.WinForms.WinViewer.OnSizeChanged(EventArgs eventArgs) in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\WinViewer.cs:line 340
00000332 10.12580299 [2964]    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
00000333 10.12580299 [2964]    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
00000334 10.12580299 [2964]    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
00000335 10.12580299 [2964]    at System.Windows.Forms.Control.ScaleControl(SizeF factor, BoundsSpecified specified)
00000336 10.12580299 [2964]    at System.Windows.Forms.ScrollableControl.ScaleControl(SizeF factor, BoundsSpecified specified)
00000337 10.12580299 [2964]    at System.Windows.Forms.Control.ScaleControl(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
00000338 10.12580299 [2964]    at System.Windows.Forms.ContainerControl.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
00000339 10.12580299 [2964]    at System.Windows.Forms.ContainerControl.PerformAutoScale(Boolean includedBounds, Boolean excludedBounds)
00000340 10.12580299 [2964]    at System.Windows.Forms.ContainerControl.OnLayoutResuming(Boolean performLayout)
00000341 10.12580299 [2964]    at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
00000342 10.12580299 [2964]    at Telerik.ReportViewer.WinForms.ReportViewerAreaBase.InitializeComponent() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\ReportViewerAreaBase.cs:line 163
00000343 10.12580299 [2964]    at Telerik.ReportViewer.WinForms.WinViewer..ctor() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\WinViewer.cs:line 91
00000344 10.12580299 [2964]    at Telerik.ReportViewer.WinForms.ReportViewer..ctor() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\ReportViewer.cs:line 11
00000345 10.12580299 [2964]    at ColonialFence.PrintForm.InitializeComponent() in C:\Users\Peter\Documents\Visual Studio 2008\Projects\ColonialFence\ColonialFence\PrintForm.Designer.cs:line 32
00000346 10.12580299 [2964]    at ColonialFence.PrintForm..ctor() in C:\Users\Peter\Documents\Visual Studio 2008\Projects\ColonialFence\ColonialFence\PrintForm.cs:line 43
00000347 10.12580299 [2964]    at ColonialFence.Program.Main() in C:\Users\Peter\Documents\Visual Studio 2008\Projects\ColonialFence\ColonialFence\Program.cs:line 265</StackTrace><ExceptionString>System.NullReferenceException: Object reference not set to an instance of an object.
00000348 10.12580299 [2964]    at Telerik.ReportViewer.WinForms.WinViewer.UpdateScrollSize() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\WinViewer.cs:line 817
00000349 10.12580299 [2964]    at Telerik.ReportViewer.WinForms.WinViewer.OnSizeChanged(EventArgs eventArgs) in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\WinViewer.cs:line 340
00000350 10.12580299 [2964]    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
00000351 10.12580299 [2964]    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
00000352 10.12580299 [2964]    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
00000353 10.12580299 [2964]    at System.Windows.Forms.Control.ScaleControl(SizeF factor, BoundsSpecified specified)
00000354 10.12580299 [2964]    at System.Windows.Forms.ScrollableControl.ScaleControl(SizeF factor, BoundsSpecifie
00000355 10.12589359 [2964] d specified)
00000356 10.12589359 [2964]    at System.Windows.Forms.Control.ScaleControl(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
00000357 10.12589359 [2964]    at System.Windows.Forms.ContainerControl.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
00000358 10.12589359 [2964]    at System.Windows.Forms.ContainerControl.PerformAutoScale(Boolean includedBounds, Boolean excludedBounds)
00000359 10.12589359 [2964]    at System.Windows.Forms.ContainerControl.OnLayoutResuming(Boolean performLayout)
00000360 10.12589359 [2964]    at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
00000361 10.12589359 [2964]    at Telerik.ReportViewer.WinForms.ReportViewerAreaBase.InitializeComponent() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\ReportViewerAreaBase.cs:line 163
00000362 10.12589359 [2964]    at Telerik.ReportViewer.WinForms.WinViewer..ctor() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\WinViewer.cs:line 91
00000363 10.12589359 [2964]    at Telerik.ReportViewer.WinForms.ReportViewer..ctor() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\ReportViewer.cs:line 11
00000364 10.12589359 [2964]    at ColonialFence.PrintForm.InitializeComponent() in C:\Users\Peter\Documents\Visual Studio 2008\Projects\ColonialFence\ColonialFence\PrintForm.Designer.cs:line 32
00000365 10.12589359 [2964]    at ColonialFence.PrintForm..ctor() in C:\Users\Peter\Documents\Visual Studio 2008\Projects\ColonialFence\ColonialFence\PrintForm.cs:line 43
00000366 10.12589359 [2964]    at ColonialFence.Program.Main() in C:\Users\Peter\Documents\Visual Studio 2008\Projects\ColonialFence\ColonialFence\Program.cs:line 265</ExceptionString></Exception></TraceRecord>

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 03 Jan 2012, 02:57 PM
Hi Peter,

This is a known issue in the version you use, so upgrading to the latest version of Telerik Reporting is highly recommended. The bug occurs when the desktop DPI is different than 96 DPI (or you have a custom windows font set), and the ReportViewer tries to auto-scale itself accordingly. Again, the issue has already been addressed so upgrade to resolve the issue.

Kind regards,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
Peter
Top achievements
Rank 1
answered on 17 Jan 2012, 07:33 PM
Thank you for your reply.   Can you tell me if there are any issues with using the latest version of Telerik Reporting and an older version (previously stated) of Telerik WinForms?
0
Steve
Telerik team
answered on 18 Jan 2012, 09:17 AM
Hi Peter,

Do you mean having them side by side on your machine? If that is the question, then yes, you can have different major versions on the same machine.

All the best,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
Steve
Telerik team
Peter
Top achievements
Rank 1
Share this question
or