Hi,
I run into something strange and can't find it. The code sorts a DBGrid and runs without errors on win 11 but has an access violation when I run the exact same code on win10. The line where it goes wrong is
_SqlQuery.AddIndex(ASC_IndexName, _Column.FieldName,[]); (_SqlQuery is a TSQLQuery)
ASC_IndexName and _Column.FieldName both have a value.
Now I thought to follow the underlying code to see what goes wrong but if I put a breakpoint in bufdataset unit on the first line of the TCustomBufDataset.AddIndex(...) then I don't get there with F7. Is it possible to put a breakpoint in the source code of Lazarus to see whats going on? (Lazarus 4.0)
Edit:
I now see that it is not a Lazarus unit but a Free Pascal unit. Is it possible to get there with debugging?