trichview.com

trichview.support




Re: Access violation when using the dbrichview


Return to index


Author

Message

Sergey Tkachenko

Posted: 07/12/2003 10:07:51


Delphi 2-5 have problems with non-standard graphic classes (see the RichView

help topic "How to use third-party graphic classes with RichView").

Did you override RichView's function RV_CreateGraphics?


uses RVFuncs;

...

// defining custom function for

// graphic object creation.

function CreateGraphics(GraphicClass: TGraphicClass): TGraphic;

begin

  if GraphicClass=TGifImage then

    Result := TGifImage.Create

  else

    Result := GraphicClass.Create;

end;

...


initialization

// assigning RV_CreateGraphics

// this assignment must be done before the

// first filling of RichView with data


RV_CreateGraphics := CreateGraphics;


> Using Delphi 5 and the GifImage component.  Using the trial version

1.7.10.1

>

> Have determined that error reoccurs consistently if I just start up

Delphi,

> and run the program with no changes as like this morning.  But if I

rebuild

> the project before running, no error occurs.  Very strange.

>

> Thank you.

>

>

>





Powered by ABC Amber Outlook Express Converter