Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TBatchMove causes GPF 1

Status
Not open for further replies.

troyu

Programmer
Nov 21, 2000
185
CA
I am unable to use TBatchMove. I continue getting General Protection Fault's when I try and use this component!! Help.

Here is a snipit:

procedure runCashReImport;

var
BMove : TBatchMove;

begin
BMove.Destination := Form_Main.Table_GiftCashed;
BMove.Source := Form_Main.Query_CashedTwice;
BMove.Mode := batAppend;
BMove.Execute;
end;
 
You forgot to create the TBatchMove object.

procedure runCashReImport;
var
BMove : TBatchMove;
begin
BMove := TBatchMove.Create(Application);
BMove.Destination := Form_Main.Table_GiftCashed;
BMove.Source := Form_Main.Query_CashedTwice;
BMove.Mode := batAppend;
BMove.Execute;
BMove.Free;
end;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top