Page 1 of 1

Access violation in RvThumbMaker while opening old rvf´s

Posted: Wed Jul 16, 2014 8:08 am
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.

Posted: Wed Jul 16, 2014 9:33 am
by Sergey Tkachenko
Please send to richviewgmailcom

Posted: Wed Jul 16, 2014 11:55 am
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.

Posted: Wed Jul 16, 2014 1:54 pm
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

Posted: Wed Jul 16, 2014 2:07 pm
by Richter.Duetting
Yes it works. Thank you very much for the fast support!