Access violation when using search with table

General TRichView support forum. Please post your questions here
Post Reply
markkuin2
Posts: 10
Joined: Tue Sep 06, 2005 9:57 am

Access violation when using search with table

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Do you use RichView v1.9.8 and Delphi 2005?
markkuin2
Posts: 10
Joined: Tue Sep 06, 2005 9:57 am

Post by markkuin2 »

I use Richview 198 and Delphi 7
markkuin2
Posts: 10
Joined: Tue Sep 06, 2005 9:57 am

Post 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
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

The bug is confirmed. Will be fixed in the next update.
markkuin2
Posts: 10
Joined: Tue Sep 06, 2005 9:57 am

Post by markkuin2 »

Thanks
Post Reply