<slightly off topic>
It is safe Delphi practice to initialise the local variables to nil as I have done so that the call to FreeAndNil is safe (since TObject.Free checks for Self <> nil) should the finally block be entered before the local variable in question has been initialised. Potentially the local variable could be initialised to some random memory address if it is not explicitly assigned a nil value, which would cause an access violation in FreeAndNil.
</slightly off topic>
Thanks for the component suggestions.
Steven
Main Topics
Browse All Topics





by: mnasmanPosted on 2005-06-08 at 23:09:20ID: 14177010
Hi
DACHome.ht ml
The code seems ok, may the MSql components are the problem
but remove these lines, you are reference to nil and your components still not initialized
aQuery1 := nil;
aQuery2 := nil;
try MyDac from crLab, they offer best Direct Connect components for Oracle/SqlServer/MySql for delphi and .Net, there component are great and stable
http://crlab.com/mydac/
and you can run the applicatin with myDac without install the MySql Client, which is very nice feature
also try AnyDac, it's new direct connection components for many db,
http://www.da-soft.com/Any
Regards,
Mohammed