Access violation in RvThumbMaker while opening old rvf´s

General TRichView support forum. Please post your questions here
Post Reply
Richter.Duetting
Posts: 10
Joined: Fri Aug 22, 2008 8:41 am

Access violation in RvThumbMaker while opening old rvf´s

Post by Richter.Duetting »

Hello,

I just moved a project from Delphi 6 to Delphi XE6.

If I open old texts created with the D6 application with the new version I´m getting an access violation exception.

Exception class $0000005, access violation at 0x00747018: read of address 0x039df99a

The problem seems to occur in RvThumbMaker.pas in line 338 (procedure ApplyVertically in procedure ResizeBitmap() )

I´ve also tried to open the text with the demo versions of Richview as well as ScaleRichView. Same problem.

Versions in Delphi 6:
TRichView 11.0.5
ScalerichView 2.2.1

Versions in XE6:
TRichView 14.15.1
ScalerichView 5.11.2

I can provide a sample of a crashing rvf file if necessary.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Please send to richviewgmailcom
Richter.Duetting
Posts: 10
Joined: Fri Aug 22, 2008 8:41 am

Post by Richter.Duetting »

Alright. Mail is sent.

As mentioned in the mail:

Meanwhile i found out that the problem is caused by an embedded graphic.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I confirm the problem.

Quick fix:
RvThumbMaker.pas, the line 166, instead of

Code: Select all

            if -y < SrcHeight then begin
must be:

Code: Select all

            if -y[color=red]2[/color] < SrcHeight then begin
Richter.Duetting
Posts: 10
Joined: Fri Aug 22, 2008 8:41 am

Post by Richter.Duetting »

Yes it works. Thank you very much for the fast support!
Post Reply