AV in Print Preview when drawing thumbnails

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

AV in Print Preview when drawing thumbnails

Postby DanielTr » March 25th, 2016, 2:11 pm

Hello,

we we're running into access violations / heap corruptions lately that seem to be caused by GdipDrawImageRectRect when drawing thumbnails.
The access violation didn't occur every time, what makes it not that easy to reproduce. Most of the time it happened when previewing many pages (> 1000).

More information:
TPrintPreview v5.91
TPaperPreview v2.20
TThumbnailPreview v2.11
Delphi XE7
Windows 8.1 and Windows 10

A proposed solution, that seems to work for us, would be to draw the images in TThumbnailPreview.CustomDrawItem only, when the component itself is visible (add "and Self.Visible" to line 5917).

If there are any other suggestions, why this error did occur and how to fix it, we would be happy to be informed.
DanielTr
Member
Member
 
Posts: 1
Joined: March 24th, 2016, 8:00 am

Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron