on the demos we have example code
{
TMyQuery* q = new TMyQuery(NULL);
try
{
...
}
__finally
{
q->Free();
}
}
TMyConnection* MyConnection1 = new TMyConnection(NULL);
try {
....
}
__finally {
MyConnection1->Free();
}
I would like to know why the examples use q->Free(); instead of delete q;
Free vs Delete
Re: Free vs Delete
Emailed the above question to support and got this response.
According to the Embarcadero documentation, the Delete method is recommended to be used in the C++ projects.
According to the Embarcadero documentation, the Delete method is recommended to be used in the C++ projects.
Re: Free vs Delete
Please feel free to contact us if you have any questions