Page 1 of 1

Access violation when using search with table

Posted: Mon Nov 07, 2005 9:30 am
by markkuin2
When I have a table with 2 rows; 2 columns in row 1; 1 column in row 2.
I place some text in row2 column 1.
I put the cursor below the table
Then I search for the text in row2 column1 (Search direction: up). This results in an access violation. When I place the cursor above the table and search down everything works fine. This behaviour is always true if the number of columns in the last row is less then the maximum number of columns in the table.

Posted: Mon Nov 07, 2005 9:33 am
by Sergey Tkachenko
Do you use RichView v1.9.8 and Delphi 2005?

Posted: Mon Nov 07, 2005 9:35 am
by markkuin2
I use Richview 198 and Delphi 7

Posted: Mon Nov 07, 2005 10:04 am
by markkuin2
It seems the error occurs in:

function TCustomRVFormattedData.SearchText(Down, MatchCase, WholeWord: Boolean; s:String):Boolean;

function SearchInItem(item: TCustomRVItemInfo; StoreSub: TRVStoreSubRVData;
SubRVData: TCustomRVFormattedData): Boolean;

if Result then
item.ChooseSubRVData(StoreSub); //Access violation

Posted: Mon Nov 07, 2005 10:10 am
by Sergey Tkachenko
The bug is confirmed. Will be fixed in the next update.

Posted: Mon Nov 07, 2005 10:15 am
by markkuin2
Thanks