ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/runtime/IBServices.pas
(Generate patch)

Comparing ibx/trunk/runtime/IBServices.pas (file contents):
Revision 1 by tony, Mon Jul 31 16:43:00 2000 UTC vs.
Revision 7 by tony, Sun Aug 5 18:28:19 2012 UTC

# Line 24 | Line 24
24   {       Corporation. All Rights Reserved.                                }
25   {    Contributor(s): Jeff Overcash                                       }
26   {                                                                        }
27 + {    IBX For Lazarus (Firebird Express)                                  }
28 + {    Contributor: Tony Whyman, MWA Software http://www.mwasoftware.co.uk }
29 + {    Portions created by MWA Software are copyright McCallum Whyman      }
30 + {    Associates Ltd 2011                                                 }
31 + {                                                                        }
32   {************************************************************************}
33  
34   {
35    InterBase Express provides component interfaces to
36    functions introduced in InterBase 6.0.  The Services
37 <  components (TIB*Service, TIBServerProperties) and
33 <  Install components (TIBInstall, TIBUninstall, TIBSetup)
37 >  components (TIB*Service, TIBServerProperties)
38    function only if you have installed InterBase 6.0 or
39 <  later software
39 >  later software, including Firebird
40   }
41  
42   unit IBServices;
43  
44 + {$Mode Delphi}
45 +
46   interface
47  
48   uses
49 <  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
49 > {$IFDEF WINDOWS }
50 >  Windows,
51 > {$ELSE}
52 >  unix,
53 > {$ENDIF}
54 >  SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
55    IBDialogs, IBHeader, IB, IBExternals;
56  
57   const
# Line 500 | Line 511 | type
511   implementation
512  
513   uses
514 <  IBIntf, IBSQLMonitor;
514 >  IBIntf , IBSQLMonitor, Math;
515  
516   { TIBCustomService }
517  
# Line 634 | Line 645 | begin
645    FHandle := nil;
646    FLoginPrompt := True;
647    FTraceFlags := [];
648 +  FOutputbuffer := nil;
649 +  FProtocol := Local;
650   end;
651  
652   destructor TIBCustomService.Destroy;
# Line 646 | Line 659 | begin
659      FSPB := nil;
660      FParams.Free;
661    end;
662 +  ReallocMem(FOutputBuffer, 0);
663    inherited Destroy;
664   end;
665  
# Line 721 | Line 735 | begin
735    if csReading in ComponentState then
736      FStreamedActive := Value
737    else
738 <    if Value then
739 <      Attach
740 <    else
741 <      Detach;
738 >    if Value <> Active then  
739 >      if Value then
740 >        Attach
741 >      else
742 >        Detach;
743   end;
744  
745   procedure TIBCustomService.SetBufferSize(const Value: Integer);
# Line 1729 | Line 1744 | begin
1744    for i := 0 to High(FUserInfo) do
1745      FUserInfo[i].Free;
1746    FUserInfo := nil;
1747 <  inherited destroy;
1747 >  inherited Destroy;
1748   end;
1749  
1750   procedure TIBSecurityService.FetchUserInfo;
# Line 1795 | Line 1810 | end;
1810  
1811   function TIBSecurityService.GetUserInfoCount: Integer;
1812   begin
1813 <  Result := High(FUSerInfo);
1813 >  Result := Max(High(FUSerInfo),0);
1814   end;
1815  
1816   procedure TIBSecurityService.AddUser;
# Line 2043 | Line 2058 | end;
2058   destructor TDatabaseInfo.Destroy;
2059   begin
2060    DbName := nil;
2061 <  inherited;
2061 >  inherited Destroy;
2062   end;
2063  
2064   { TLicenseInfo }
# Line 2060 | Line 2075 | begin
2075    Key := nil;
2076    Id := nil;
2077    Desc := nil;
2078 <  inherited;
2078 >  inherited Destroy;
2079   end;
2080  
2081   { TConfigFileData }
# Line 2075 | Line 2090 | destructor TConfigFileData.Destroy;
2090   begin
2091    ConfigFileValue := nil;
2092    ConfigFileKey := nil;
2093 <  inherited;
2093 >  inherited Destroy;
2094   end;
2095  
2096   { TConfigParams }
# Line 2090 | Line 2105 | destructor TConfigParams.Destroy;
2105   begin
2106    ConfigFileData.Free;
2107    ConfigFileParams := nil;
2108 <  inherited;
2108 >  inherited Destroy;
2109   end;
2110  
2111   end.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines