Recent

Author Topic: DataSet.Append Error (SOLVED)  (Read 3224 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2090
    • Lazarus and Free Pascal italian community
DataSet.Append Error (SOLVED)
« on: June 22, 2011, 03:54:52 pm »
Because when I try this procedure to insert the record I get the following error?

raised exception class 'External: SIGSEGV'.

Code: [Select]
procedure TExtDBListBox.InserisciRecord();
begin
     MyDataSourceOut.DataSet.Append;
     MyDataSourceOut.DataSet.FieldByName(MyFieldIn).Value:=MyDataSourceIn.DataSet.FieldByName(MyFieldIn).Value;
     MyDataSourceOut.DataSet.FieldByName(MyFieldList).Value:=MyDataSourceList.DataSet.FieldByName(MyFieldList).Value;
     MyDataSourceOut.DataSet.Post;
end;         
« Last Edit: June 22, 2011, 04:47:08 pm by xinyiman »
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2090
    • Lazarus and Free Pascal italian community
Re: DataSet.Append Error
« Reply #1 on: June 22, 2011, 04:46:56 pm »
I resolved because I was using a DataSource, passing instead a TSQLQuery solve the problem.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018