Guest User

lazarus reconnection bug

a guest
Apr 17th, 2015
6
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. procedure TMainForm.ConnectItemClick( Sender: TObject );
  2. begin
  3.   if IBConnection.Connected then begin
  4.     if not ( MessageDlg( 'Connection seems established, do you want to reconnect?',
  5.                           mtWarning, mbYesNo, 0 ) = mrYes ) then Exit;
  6.     IBConnection.Close( True );
  7.   end;
  8.  
  9.   IBConnection.Open();
  10. end;
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×