Having moved over to Linux a week or so back, I am re-writing some Delphi programs, not actually porting them or using the "Tools-Delphi" options, but a lot of stuff is copyable across.
Using SQLdb and nothing fancy going on, I am getting errros/crashes that change.
When opening a specific sub-Form, I empty a Table and sometimes get "Cannot perform that on a closed dataset." But then at other times I get "Dataset is read only" and then again, "cannot perform that on an active dataset."
If I click "Break" on the error message it takes me to different places in the source, rarely the same spot. It seems to have scrambled it's brains. I can open and change data in the Firefox Sqlbrowser OK. I checked the Ubuntu/Mint file permissions and all three levels are "Read and write". Tried a full rebuild same problem.
The
weird thing is this used to work and I have not changed anything in that section since it was working a two days back.
procedure TblClear(const sqlQry : TSQLQuery);
begin
if sqlQry.RecordCount > 0 then // It is OK until this line then breaks and
begin // throws me to somewhere else in the source
sqlQry.Last;
while not(sqlQry.BOF) do
sqlQry.Delete;
end;
end;