|
@@ -392,13 +392,16 @@ end;
|
|
|
|
|
|
destructor TFBAdmin.Destroy;
|
|
destructor TFBAdmin.Destroy;
|
|
begin
|
|
begin
|
|
- if FSvcHandle<>FB_API_NULLHANDLE then
|
|
|
|
- begin
|
|
|
|
- WaitInterval:=100;
|
|
|
|
- DisConnect;
|
|
|
|
|
|
+ try
|
|
|
|
+ if FSvcHandle<>FB_API_NULLHANDLE then
|
|
|
|
+ begin
|
|
|
|
+ WaitInterval:=100;
|
|
|
|
+ DisConnect; // This can raise an exception
|
|
|
|
+ end;
|
|
|
|
+ Finally
|
|
|
|
+ FOutput.Destroy;
|
|
|
|
+ inherited Destroy;
|
|
end;
|
|
end;
|
|
- FOutput.Destroy;
|
|
|
|
- inherited Destroy;
|
|
|
|
end;
|
|
end;
|
|
|
|
|
|
function TFBAdmin.Connect: boolean;
|
|
function TFBAdmin.Connect: boolean;
|