Code: Select all
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1},
Unit2 in 'Unit2.pas' {DataModule2: TDataModule};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TDataModule2, DataModule2);
DataModule2.QueryPesq.SQL.Clear;
DataModule2.QueryPesq.SQL.Append('select * from my_table');
DataModule2.QueryPesq.Open;
//Application.Run;
end.
The following code works:
-> Query_do_Zeos;
Application.Run;
But the following does not work (cause exception error in ZDbcMySqlResultSet.pas):
-> Query_do_Zeos;
/ / Application.Run;
Can anyone help?