Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Incident Reports » Incident Reports Reported for Version 4.05 » View Incident Report |
Minor |
Reported By: Christian Sanggaard Reported On: 4/21/2004 For: Version 4.05 Build 1 |
procedure TForm1.Button1Click(Sender: TObject); begin NetworkErr := false; DBISAMSession1.RemoteTimeout := 30; Table1.Active := True; showmessage('Connected'); end; procedure TForm1.Button2Click(Sender: TObject); begin DBISAMSession1.Active := false; showmessage('Disconnected'); end; procedure TForm1.ApplicationEvents1Exception(Sender: TObject; E: Exception); begin if NetworkErr then Exit; if E is EDBISAMEngineError then with E as EDBISAMEngineError do NetworkErr := (ErrorCode = DBISAM_REMOTECOMMLOST) or (ErrorCode = DBISAM_REMOTECONNECT); if NetworkErr then begin application.ProcessMessages; showmessage('Network error. Disconnecting...'); try screen.Cursor := crHourGlass; Button2Click(nil); finally screen.Cursor := crDefault; end; end else with Application do MessageBox(PChar(E.Message),PChar(Title), mb_Ok or mb_IconExclamation); end; procedure TForm1.Button3Click(Sender: TObject); begin Table1.First; showmessage('done'); end; procedure TForm1.DBISAMSession1RemoteReconnect(Sender: TObject; var Continue: Boolean); begin if networkErr then Continue := False; end; procedure TForm1.DBISAMSession1RemoteTimeout(Sender: TObject; var StayConnected: Boolean); begin if networkErr then StayConnected := False; end;
This web page was last updated on Tuesday, April 23, 2024 at 08:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |