trichview.com

trichview.support




Re: AV error doing anything with tables in D9


Return to index


Author

Message

Martin Holmes

Posted: 05/03/2005 15:44:49


And more info:


The D9 "Structure" palette (which is new to me) shows a bunch of errors

that are puzzling, among them:


'TRichViewEdit' does not contain a member named 'Format'

Undeclared identifier 'TCustomRVData'

Undeclared identifier 'ItemCount'

Undeclared identifier 'GetItemStyle'


Cheers,

Martin


Martin Holmes wrote:

> Here's a bit more info: it seems to happen when I call Format on a

> TRichViewEdit. Here's an example of code that generates an error:

>

>   RVGetSelection(RVE, SelStart, SelLength);

>

> //Handle right-to-left selection

>   if SelLength < 0 then

>      begin

>         RVSetSelection(RVE, SelStart+SelLength, SelLength*-1);

>         RVGetSelection(RVE, SelStart, SelLength);

>      end;

>

> //Set selected text to appropriate style (if there is any)

>   if SelLength > 0 then

>      begin

>         RVE.ApplyTextStyle(tsAnnText);

>         RVE.Format;             //ERROR COMES HERE!!!!!!!!!!!!!!!!!!!!!!

>         RVSetSelection(RVE, SelStart, SelLength);

>      end....

>

> Any ideas what might be happening?

>

> Cheers,

> Martin

>

> Martin Holmes wrote:

>

>> Hi there,

>>

>> I'm using RV 1.9.8 under D9 update 2, in a project which was working

>> fine under D5. I'm getting access violations (read of address

>> 00000000) whenever I try to do things with a table. I can insert a

>> table, then type in a cell, but if I then double-click a word to

>> select it in the cell, or click-and-drag to select, I get the AV error.

>>

>> Has anyone seen this before?

>>

>> Cheers,

>> Martin





Powered by ABC Amber Outlook Express Converter