ReportViewer 2010 raises exception in DisplayMode.Normal (then mouse moves over control) RRS feed

  • Вопрос

  • Hello,

    Recently I've got new customer and strange problem I can't resolve.

    I have a .net desktop aplication with ReportViewer 2010 control. More than 500 installations. Everything works fine. Except on my new customer PCs.

    Application is using .net framework version 3.5 SP1.

    The problem is: When report is rendered in local mode with DisplayMode.PrintLayout everything works great. When I switch it to DisplayMode.Normal it renders ok, but if I move my mouse other rendered area of control this area get crossed by a red X and an exception is thrown with the following stacktrace:

    System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. в Microsoft.ReportingServices.Rendering.RichText.Win32.ScriptTextOut(IntPtr hdc, ScriptCacheSafeHandle& psc, Int32 x, Int32 y, UInt32 fuOptions, IntPtr lprc, SCRIPT_ANALYSIS& psa, IntPtr pwcReserved, Int32 iReserved, Int16[] pwGlyphs, Int32 cGlyphs, Int32[] piAdvance, Int32[] piJustify, GOFFSET[] pGoffset) в Microsoft.ReportingServices.Rendering.RichText.TextBox.DrawTextRun(TextRun run, IntPtr hdc, FontCache fontCache, Int32 x, Int32 baselineY, Underline underline) в Microsoft.Reporting.WinForms.RenderingTextBox.DrawTextRun(TextRun run, Paragraph paragraph, IntPtr hdc, Single dpiX, FontCache fontCache, Int32 x, Int32 y, Int32 baselineY, Int32 lineHeight, Rectangle layoutRectangle) в Microsoft.ReportingServices.Rendering.RichText.TextBox.RenderParagraph(TextBox textBox, Paragraph paragraph, IntPtr hdc, FontCache fontCache, Int32 offsetX, Int32& offsetY, Rectangle layoutRectangle, Single dpiX) в Microsoft.ReportingServices.Rendering.RichText.TextBox.Render(TextBox textBox, List`1 paragraphs, IntPtr hdc, FontCache fontCache, PointF offset, RectangleF layoutRectangle, Single dpiX, Boolean unitsInMM) в Microsoft.ReportingServices.Rendering.RichText.RichTextRenderer.Render(Graphics g, RectangleF rectangle, PointF offset, IEnumerable`1 highlights, Boolean unitsInMM) в Microsoft.Reporting.WinForms.RenderingTextBox.RenderRichText(RichTextRenderer richTextRenderer, Graphics graphics, RectangleF rectangle, PointF offset, List`1 matches) в Microsoft.Reporting.WinForms.RenderingTextBox.DrawContent(GdiContext context) в Microsoft.Reporting.WinForms.RenderingItem.DrawToPage(GdiContext context) в Microsoft.Reporting.WinForms.RenderingItemContainer.DrawContent(GdiContext context) в Microsoft.Reporting.WinForms.RenderingTablix.DrawContent(GdiContext context) в Microsoft.Reporting.WinForms.RenderingItem.DrawToPage(GdiContext context) в Microsoft.Reporting.WinForms.RenderingItemContainer.DrawContent(GdiContext context) в Microsoft.Reporting.WinForms.RenderingItem.DrawToPage(GdiContext context) в Microsoft.Reporting.WinForms.RenderingReport.DrawToPage(GdiContext context) в Microsoft.Reporting.WinForms.ClientGDIRenderer.DrawToPage(Graphics graphics, Boolean firstDraw, Boolean testMode) в Microsoft.Reporting.WinForms.GdiPage.Draw(Graphics g, PointF scrollOffset, Boolean testMode) в Microsoft.Reporting.WinForms.ReportPanel.RenderingPanel.RenderToGraphics(Graphics g, Boolean testMode) в Microsoft.Reporting.WinForms.ReportPanel.RenderingPanel.OnPaint(PaintEventArgs e) в System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) в System.Windows.Forms.Control.WmPaint(Message& m) в System.Windows.Forms.Control.WndProc(Message& m) в System.Windows.Forms.ScrollableControl.WndProc(Message& m) в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    The problem appears on all reports (150+). Even on the simpliest one (I've made a blank one, with just one textfield). I've tried everything I can thought. Removed antivirus, updated all drivers and installed all updates. This happens on 3 PCs (everyone I've checked), and only on this customer computers. He has a lot of PCs with the same configuration and programs list (basicaly cloned). All have Windows XP SP3 and .NET Framework 3.5 SP1 installed.

    What can be wrong?

    27 января 2011 г. 17:29


  • Found the reason. It was Lingvo v12. It has a function of showing translation of the text under mouse pointer. Obviously it has a bug. Version 14 doesn't have this problem. So its not a ReportViewer problem.
    • Предложено в качестве ответа Yury Iwtschenko 28 января 2011 г. 10:24
    • Помечено в качестве ответа Yuriy Lenchenkov 31 января 2011 г. 9:55
    28 января 2011 г. 9:43