Dear list,

I'm using sqlite (Version 2) component (TSQliteDataset) within
lazarus. My code ist like this:

 SQLiteDataset1.FileName := 'xy.db';
 SQLiteDataset1.TableName := 'settings';

 with SQLiteDataset1 do
 begin
  SQL := 'SELECT name, value FROM settings;';
  Open; // <-- Crash here
  First;
  while not EOF do
  begin
   ShowMessage(FieldByName('name').AsString+'='+FieldByName('value').AsString);
   Next;
  end;
  close;
 end;

Annotation:

If debugger is turned on program crashes at "open;". If debugger is
turned off, program shows me all lines of the table...

Does anybody know...

...why?

...how to solve?

...is there a switch like {$debug off}[my code]{$debug on}


Thanks!

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to