Article View: borland.public.interbase.opensource
Article #212Re: IB Server window name
From: Dan Palley
Date: Mon, 28 Nov 2005 16:50
Date: Mon, 28 Nov 2005 16:50
34 lines
2031 bytes
2031 bytes
"Gheorghe" <gmusca@dnt.ro> wrote in message
news:438ae817@newsgroups.borland.com...
> Hi,
>
> I start IBServer as an application, and, upon starting up, use this code
> for
> testing if server is already running:
>
> AnsiString s = "full path to ibserver.exe";
>
> HWND hPrevApp = FindWindow("IB_SERVER", NULL);
> if(!hPrevApp)
> {
> // start ibserver
> }
>
> Everithing works fine, except that some customers who use Win Terminal
> Services report that code is trying to start IB even if it is already
> started. They have to shut down ibserver.exe from Task Manager and then it
> is OK.
>
> It seems that on Terminal Services, the window name is not "IB_SERVER" but
> smth. else.
> Any ideas?
The hidden window that IB uses for local connections is only available on
the console session when running on Terminal Server. Other sessions will
need to connect to the server using TCP/IP and a loopback connection
(localhost). What you can do is connect to the server using the API to see
if it's running.
Why not simply have IB run as a service instead?
Dan
Technical Details
Message-ID:
<438b35ea$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<438ae817@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 106772,fabcd92d373a9084 X-Google-Attributes: gid106772,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Dan Palley" <dan@trams.com> Newsgroups: borland.public.interbase.opensource References: <438ae817@newsgroups.borland.com> Subject: Re: IB Server window name Date: Mon, 28 Nov 2005 08:50:55 -0800 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 66.102.131.250 Message-ID: <438b35ea$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1133196778 66.102.131.250 (28 Nov 2005 08:52:58 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail