d.bernaert Posted February 17, 2021 Share Posted February 17, 2021 Hi, One of my customers sometimes receives an error message when filtering a dataset. There is a shortcut on the screen to filter the dataset by a certain criteria and now and then he receives the following error message and everything hangs. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 17, 2021 Administrators Share Posted February 17, 2021 It seems to happen when DataSet returns a RecordCount = -1. It should not happen normally. Workaround is to ignore this and return an empty grid. Workaround: if rCount < 0 then raise Exception.Create('Dataset returned invalid "RecordCount": ' + IntToStr(rCount)); You can replace above line with: if rCount < 0 then rCount := 0; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.