knulo
User
 Senior Boarder
| Posts: 38 |   | Karma: 1 |
|
Re:ADPhysDriver shoutdown time out Exception
|
|
Posted: 2007/07/10 07:51 |
|
|
|
|
Hello lorez!
With Close you release the connection. With Free you release memory of the connection component and after that it will no longer exist, that is: you cannot access it. Normally, components will be freed during destruction of form or datamodule, so there is no need to call Free() manually.
Ergo: if Close and Free, then 'Free' after 'Close'. Before 'Close', you shoul close all queries, tables and so on. If you call Free() for a component that is placed on form during design time (the normal way), you should not call Free() in your code.
Regards Knut
Post edited by: knulo, at: 2007/07/10 07:52
|
|