It's not about trapping error. If we are using dataset which is opened
when the link down (ex: cable disconnected).
This would make a deadlock situation. Your dataset still active but you
cannot do anything to it. If you try to close it, it will
generate error (which mean you cannot close the dataset, even if you are
trapping the error) and you cannot take value from its field,
scroll the dataset to another record, etc
So the only solution I know is using TClientDataset, using this solution
we only need a connection when we retrive or saved data.
Using this kind of solution we never go into deadlock situation.
Winata
NB : sorry about my english
David Smith wrote:
> are you trapping the error with something like the following so the app. can
> recover gracefully?
>
> try
> commLink.open;
> except
> showmessage('link seems to be down, try again later');
> end;
>
>