🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3833

Re: Socket problems between application and service application when service installed under local system account

#3833
From: Daniel Stevenson
Date: Wed, 01 Jun 2005 23:42
22 lines
2333 bytes
> There is no socket error 1110.  As I said, socket errors are always at
least
> 5 digits, beginning at 10004.  Are you absolutely sure that you are
reading
> it properly?  There is, however, a socket error 11001 (WSAHOST_NOT_FOUND).

I'm absolutely sure, I posted the code that was returning the error code on
a previous message, the error code was definately coming from the
TClientSocket's OnError event.  The only thing I can think of is if the
socket error event is somehow using GetLastError internally and was finding
another error code.

I wish i could send you my code so that I could show you, but I can't, I had
even performed a screen capture to attach to this message but I can't seem
to include attachments to these posts to show you either.  :(

Since working out its the missing INI file causing the problem, I was able
to reproduce the error on my development environment, and it was caused by
me assigning NULL to both Host and Address and only assigning a Port to the
TClientSocket before opening the socket.

Maybe 1110 is "insufficient parameters"?
Technical Details
Message-ID: <429e4802@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <429bfb58@newsgroups.borland.com> <429c1ee7$1@newsgroups.borland.com> <429d0ab2@newsgroups.borland.com> <429d0c25@newsgroups.borland.com> <429d3355$1@newsgroups.borland.com> <429d4a14@newsgroups.borland.com> <429deb7c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,18a7896b72b8d882
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Daniel Stevenson" <daniel@ocreage.com.au>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <429bfb58@newsgroups.borland.com> <429c1ee7$1@newsgroups.borland.com> <429d0ab2@newsgroups.borland.com> <429d0c25@newsgroups.borland.com> <429d3355$1@newsgroups.borland.com> <429d4a14@newsgroups.borland.com> <429deb7c$1@newsgroups.borland.com>
Subject: Re: Socket problems between application and service application when service installed under local system account
Date: Thu, 2 Jun 2005 09:42:54 +1000
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 202.174.233.53
Message-ID: <429e4802@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1117669378 202.174.233.53 (1 Jun 2005 16:42:58 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail