Board index » delphi » Ruanning IB Server form Delphi?

Ruanning IB Server form Delphi?

Hi,

I am interested if it is possible to Run/Stop IB Server 6 from within Delphi
program? Are there any component or methods I can use for that?

Thanks!

 

Re:Ruanning IB Server form Delphi?


Quote
Hayk Petrosyan wrote:

> I am interested if it is possible to Run/Stop IB Server 6 from within Delphi
> program? Are there any component or methods I can use for that?

        Yes, you can.  IIRC, there's a component to start the server on
CodeCentral.  You can also look at the IB Guardian source code on
SourceForge.

        I strongly recommend that you do *not* stop the server, however.  Other
programs besides yours might be using IB.  The IB Server uses very
little memory when it's idle.  There's no reason to shut it down unless
you are writting an installer for a newer version.

        HTH,

        -Craig

--
  Craig Stuntz (TeamB) Vertex Systems Corp. Columbus, OH
      Delphi/InterBase WebLog: http://delphi.weblogs.com
      InterBase PLANalyzer (Free IB optimization tool):
           http://delphi.weblogs.com/IBPLANalyzer

Re:Ruanning IB Server form Delphi?


Quote
> I strongly recommend that you do *not* stop the server, however.  Other
> programs besides yours might be using IB.  The IB Server uses very
> little memory when it's idle.  There's no reason to shut it down unless
> you are writting an installer for a newer version.

Craig,

I am not going to shut it down, but I need to start it with my program if it
is not running already.
Basicly the problem is that when you install IB Server under Win 2000 you
should run it manualy or restart Windows so it will start IB Server service,
so instead of that I want to add some code to my program which will run IB
Server.

Thanks.

Re:Ruanning IB Server form Delphi?


Quote
Hayk Petrosyan wrote:

> I am not going to shut it down, but I need to start it with my program if it
> is not running already.

        Right.

Quote
> Basicly the problem is that when you install IB Server under Win 2000 you
> should run it manualy or restart Windows so it will start IB Server service,
> so instead of that I want to add some code to my program which will run IB
> Server.

        That's not too hard.  The only thing that's at all tricky is that you
need to decide if you're going to start IB as a service or as an app.
On Win2000, a service would probably be the best choice.  You can use
the Windows  services API to start the service.

        HTH,

        -Craig

--
  Craig Stuntz (TeamB) Vertex Systems Corp. Columbus, OH
      Delphi/InterBase WebLog: http://delphi.weblogs.com
      InterBase PLANalyzer (Free IB optimization tool):
           http://delphi.weblogs.com/IBPLANalyzer

Re:Ruanning IB Server form Delphi?


Quote
> That's not too hard.  The only thing that's at all tricky is that you
> need to decide if you're going to start IB as a service or as an app.
> On Win2000, a service would probably be the best choice.  You can use
> the Windows  services API to start the service.

Do you know how can I check if IB Server setted up to run as Service or as
Program? Because I took a look at Registry and didn't find any difference.

Thanks

Re:Ruanning IB Server form Delphi?


Quote
> Yes, you can.  IIRC, there's a component to start the server on
> CodeCentral.  You can also look at the IB Guardian source code on
> SourceForge.

Craig,

I tried to make a search for  IB Guardian at http://www.sourceforge.net/ but
it didn't return anything.
May be you can give me so link I can get it from?

Thanks!

Re:Ruanning IB Server form Delphi?


Quote
Hayk Petrosyan wrote:

> I tried to make a search for  IB Guardian at http://www.sourceforge.net/ but
> it didn't return anything.
> May be you can give me so link I can get it from?

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/interbase/InterBase/is...

--
  Craig Stuntz (TeamB) Vertex Systems Corp. Columbus, OH
      Delphi/InterBase WebLog: http://delphi.weblogs.com
      InterBase PLANalyzer (Free IB optimization tool):
           http://delphi.weblogs.com/IBPLANalyzer

Re:Ruanning IB Server form Delphi?


Quote
Hayk Petrosyan wrote:

> Do you know how can I check if IB Server setted up to run as Service or as
> Program? Because I took a look at Registry and didn't find any difference.

        I don't think it's stored there.  This is a guess, but I think it's
either in the list of services to be started automatically or it isn't.

        -Craig

--
  Craig Stuntz (TeamB) Vertex Systems Corp. Columbus, OH
      Delphi/InterBase WebLog: http://delphi.weblogs.com
      InterBase PLANalyzer (Free IB optimization tool):
           http://delphi.weblogs.com/IBPLANalyzer

Other Threads