ADOQ_tongyong - & gt; SQL - & gt; Text=SQL;
ADOQ_tongyong - & gt; Prepared;
ADOQ_tongyong - & gt; The Open ();
With the Close () can release the memory?
CodePudding user response:
General:AnsiString ss;
Ss="Select the from is induced on daily fluid production output AllRec where well number='1 Wells'";
ADOQuery1 - & gt; Close ();//before the Close
ADOQuery1 - & gt; SQL - & gt; The Clear ();
ADOQuery1 - & gt; SQL - & gt; Add (ss);
ADOQuery1 - & gt; The Open ();//the select statement of result set in the Open (), insert, delete, update statements, such as using ADOQuery1 - & gt; ExecSQL ();
CodePudding user response:
The last time did not Close, the destructor will do,CodePudding user response:
ADOQuery1 - & gt; Close () can release data memoryThe delete ADOQuery1 can release the memory data and component itself
CodePudding user response:
Agree with upstairs!!!!!!CodePudding user response:
Yes, agree with upstairs!