[twsocket] SocketSpy to C++ Problem

2011-01-22 Thread Richard Christman
Hi All,

My apologies. When the list sent my message to me, there was no attachment.
I'm going to try again in case I screwed this up. If it arrives without it
please tell me how I'm to include my project. 



I have done a cbuilder translation of Mr. Mestdagh's SpocketSpy program.
But, I have a problem. When I run the program and try to connect with a
server, I get this immediate error:

An unknown response was received in response to a request for information
from the news server 'SocketSpyC++ Local TCP Proxy'

Under the details button of the error dialog, I get:

SocketSpyC++ Local TCP Proxy

Configuration:
   Account: SocketSpyC++ Local TCP Proxy
   Server: 127.0.0.1
   Protocol: NNTP
   Port: 119
   Secure(SSL): 0
   Code: 800ccca0

I don't have any idea what the problem is. First, while trying to debug, I
put a popup messagebox at the end of the WSocketServerClientConnect
procedure to take a look at a variable. What I discovered was that
messagebox being open allowed the program to actually connect and go further
before error. After that, I replaced the messagebox with an
Application-ProcessMessages() loop as a test. I was amazed that after that,
the program ran completely and reliably--everytime. It works just great, but
I haven't tried more than 1 connection because of the ProcessMessages loop. 
Though the loop has been helpful, I doubt it is the appropriate fix for
this.

My socketspyc project is attached. Please have a look. The ProcessMessages
loop is at the end of the WSocketServerClientConnect procedure.

Regards,

Richard Christman
https://www.quicksilvermail.net
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

[twsocket] SocketSpy to C++ Problem

2011-01-22 Thread Richard Christman
Hi All,

Sorry again, Francois told me and I missed it.

https://www.quicksilvermail.net/socketspyc.zip

I have done a cbuilder translation of Mr. Mestdagh's SpocketSpy program.
But, I have a problem. When I run the program and try to connect with a
server, I get this immediate error:

An unknown response was received in response to a request for information
from the news server 'SocketSpyC++ Local TCP Proxy'

Under the details button of the error dialog, I get:

SocketSpyC++ Local TCP Proxy

Configuration:
   Account: SocketSpyC++ Local TCP Proxy
   Server: 127.0.0.1
   Protocol: NNTP
   Port: 119
   Secure(SSL): 0
   Code: 800ccca0

I don't have any idea what the problem is. First, while trying to debug, I
put a popup messagebox at the end of the WSocketServerClientConnect
procedure to take a look at a variable. What I discovered was that
messagebox being open allowed the program to actually connect and go further
before error. After that, I replaced the messagebox with an
Application-ProcessMessages() loop as a test. I was amazed that after that,
the program ran completely and reliably--everytime. It works just great, but
I haven't tried more than 1 connection because of the ProcessMessages loop. 
Though the loop has been helpful, I doubt it is the appropriate fix for
this.

My socketspyc project is attached. Please have a look. The ProcessMessages
loop is at the end of the WSocketServerClientConnect procedure.

Regards,

Richard Christman
https://www.quicksilvermail.net

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SocketSpy to C++ Problem

2011-01-22 Thread Wilfried Mestdagh
Hi,

 Sorry again, Francois told me and I missed it.
 https://www.quicksilvermail.net/socketspyc.zip

Glad it is solved :)

-- 
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be

 -Oorspronkelijk bericht-
 Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
 Namens Richard Christman
 Verzonden: zaterdag 22 januari 2011 9:45
 Aan: twsocket@elists.org
 Onderwerp: [twsocket] SocketSpy to C++ Problem
 
 Hi All,
 
 Sorry again, Francois told me and I missed it.
 
 https://www.quicksilvermail.net/socketspyc.zip
 
 I have done a cbuilder translation of Mr. Mestdagh's SpocketSpy
 program.
 But, I have a problem. When I run the program and try to connect with a
 server, I get this immediate error:
 
 An unknown response was received in response to a request for
 information
 from the news server 'SocketSpyC++ Local TCP Proxy'
 
 Under the details button of the error dialog, I get:
 
 SocketSpyC++ Local TCP Proxy
 
 Configuration:
Account: SocketSpyC++ Local TCP Proxy
Server: 127.0.0.1
Protocol: NNTP
Port: 119
Secure(SSL): 0
Code: 800ccca0
 
 I don't have any idea what the problem is. First, while trying to
 debug, I
 put a popup messagebox at the end of the WSocketServerClientConnect
 procedure to take a look at a variable. What I discovered was that
 messagebox being open allowed the program to actually connect and go
 further
 before error. After that, I replaced the messagebox with an
 Application-ProcessMessages() loop as a test. I was amazed that after
 that,
 the program ran completely and reliably--everytime. It works just
 great, but
 I haven't tried more than 1 connection because of the ProcessMessages
 loop.
 Though the loop has been helpful, I doubt it is the appropriate fix for
 this.
 
 My socketspyc project is attached. Please have a look. The
 ProcessMessages
 loop is at the end of the WSocketServerClientConnect procedure.
 
 Regards,
 
 Richard Christman
 https://www.quicksilvermail.net
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SocketSpy to C++ Problem

2011-01-22 Thread Arno Garrels
Richard,

Do not send a server banner:

void __fastcall TSocketWin::ListenBtnClick(TObject *Sender)
{
   if (ListenBtn-Tag == 0)
   {
   NNTPLog-Clear();
  WSocketServer-Banner = ; //== !


Make sure this one doesn't AV :
void __fastcall TSocketWin::Log(AnsiString Msg)
{
   while (Msg.Length()  (Msg[Msg.Length()] == '\n' || Msg[Msg.Length()] == 
'\r'))
   Msg.Delete(Msg.Length(), 1);
   log-Add(Msg);
}

-- 
Arno Garrels


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SocketSpy to C++ Problem

2011-01-22 Thread Richard Christman
Sorry for the confusion, my problem isn't solved... It was getting you the
project that was solved.

My problem with translating SocketSpy isn't fixed.

 -Original Message-
 From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
 On Behalf Of Wilfried Mestdagh
 Sent: Saturday, January 22, 2011 3:00 AM
 To: 'ICS support mailing'
 Subject: Re: [twsocket] SocketSpy to C++ Problem
 
 Hi,
 
  Sorry again, Francois told me and I missed it.
  https://www.quicksilvermail.net/socketspyc.zip
 
 Glad it is solved :)
 
 --
 mvg, Wilfried
 http://www.mestdagh.biz
 http://www.comfortsoftware.be
 http://www.expertsoftware.be
 
  -Oorspronkelijk bericht-
  Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
  Namens Richard Christman
  Verzonden: zaterdag 22 januari 2011 9:45
  Aan: twsocket@elists.org
  Onderwerp: [twsocket] SocketSpy to C++ Problem
 
  Hi All,
 
  Sorry again, Francois told me and I missed it.
 
  https://www.quicksilvermail.net/socketspyc.zip
 
  I have done a cbuilder translation of Mr. Mestdagh's SpocketSpy
  program.
  But, I have a problem. When I run the program and try to connect with
 a
  server, I get this immediate error:
 
  An unknown response was received in response to a request for
  information
  from the news server 'SocketSpyC++ Local TCP Proxy'
 
  Under the details button of the error dialog, I get:
 
  SocketSpyC++ Local TCP Proxy
 
  Configuration:
 Account: SocketSpyC++ Local TCP Proxy
 Server: 127.0.0.1
 Protocol: NNTP
 Port: 119
 Secure(SSL): 0
 Code: 800ccca0
 
  I don't have any idea what the problem is. First, while trying to
  debug, I
  put a popup messagebox at the end of the WSocketServerClientConnect
  procedure to take a look at a variable. What I discovered was that
  messagebox being open allowed the program to actually connect and go
  further
  before error. After that, I replaced the messagebox with an
  Application-ProcessMessages() loop as a test. I was amazed that
 after
  that,
  the program ran completely and reliably--everytime. It works just
  great, but
  I haven't tried more than 1 connection because of the ProcessMessages
  loop.
  Though the loop has been helpful, I doubt it is the appropriate fix
 for
  this.
 
  My socketspyc project is attached. Please have a look. The
  ProcessMessages
  loop is at the end of the WSocketServerClientConnect procedure.
 
  Regards,
 
  Richard Christman
  https://www.quicksilvermail.net
 
  --
  To unsubscribe or change your settings for TWSocket mailing list
  please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
  Visit our website at http://www.overbyte.be
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SocketSpy to C++ Problem

2011-01-22 Thread Richard Christman
Hi Arno,

I took out the banner and still the error. I took out banner and
bannertoobusy (individually and both together) and neither made difference.

I also commented out all logging last week and no difference from that
either.

 -Original Message-
 From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
 On Behalf Of Arno Garrels
 Sent: Saturday, January 22, 2011 4:11 AM
 To: ICS support mailing
 Subject: Re: [twsocket] SocketSpy to C++ Problem
 
 Richard,
 
 Do not send a server banner:
 
 void __fastcall TSocketWin::ListenBtnClick(TObject *Sender)
 {
if (ListenBtn-Tag == 0)
{
NNTPLog-Clear();
   WSocketServer-Banner = ; //== !
 
 
 Make sure this one doesn't AV :
 void __fastcall TSocketWin::Log(AnsiString Msg)
 {
while (Msg.Length()  (Msg[Msg.Length()] == '\n' ||
 Msg[Msg.Length()] == '\r'))
Msg.Delete(Msg.Length(), 1);
log-Add(Msg);
 }
 
 --
 Arno Garrels
 
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SocketSpy to C++ Problem

2011-01-22 Thread Arno Garrels
Richard Christman wrote:
 Hi Arno,
 
 I took out the banner and still the error. I took out banner and
 bannertoobusy (individually and both together) and neither made
 difference. 
 
 I also commented out all logging last week and no difference from that
 either.

I tested with 2010 with some additional changes specific to Unicode, 
will try tomorrow with 2007 and let you know my results.

-- 
Arno Garrels



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Midware create serverobject 'problem'.

2011-01-22 Thread Francois PIETTE

Hi !

Search where v.pas file is on your system and add that folder to Delphi 
search path. It is likely that this file is in midware folder.


--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

- Original Message - 
From: Ruud Kerstens ruud.kerst...@hotmail.com

To: ICS support mailing twsocket@elists.org
Sent: Saturday, January 22, 2011 7:36 PM
Subject: [twsocket] Midware create serverobject 'problem'.



Hi All,

I am using the latest ICS and Midware in Delphi XE, which works fine 
sofar.
I can run the demo’s and I really like the Midware options, however when I 
follow the tutorial ‘My First server’ I get into trouble..


First steps work fine, until step 6, which I skip as it is optional as 
mentioned in that part. (No image editor in XE as well).

Step 7 is what gets me in trouble.

I follow the actions as mentioned, and when I click compile/Install, it is 
asking for the dcu-files ([DCC Fatal Error] OverbyteMwDXeRun.dpk(61): 
F1026 File not found: 'OverbyteSObjBdeSql.dcu')
The Midware-library is in the path (demo’s work fine as well), and I 
checked the search-path in the screen as well, which also uses the midware 
library-path.


Anybody an idea what I might be doing wrong?

Best regards, and thanks,

Ruud Kerstens
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Re: [twsocket] SocketSpy to C++ Problem

2011-01-22 Thread Richard Christman


 -Original Message-
 From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
 On Behalf Of Arno Garrels
 Sent: Saturday, January 22, 2011 12:29 PM
 To: ICS support mailing
 Subject: Re: [twsocket] SocketSpy to C++ Problem
 
 Richard Christman wrote:
  Hi Arno,
 
  I took out the banner and still the error. I took out banner and
  bannertoobusy (individually and both together) and neither made
  difference.
 
  I also commented out all logging last week and no difference from
 that
  either.
 
 I tested with 2010 with some additional changes specific to Unicode,
 will try tomorrow with 2007 and let you know my results.
 

Thanks so much, Arno.

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Midware create serverobject 'problem'.

2011-01-22 Thread Francois PIETTE

PS, i do not find any v.pas, is this really needed?


Actually I wanted to type CTRL+V to insert 'OverbyteSObjBdeSql' I copied but 
ctrl key was lost :-(


--
francois.pie...@overbyte.be
http://www.overbyte.be


- Original Message - 
From: Ruud Kerstens ruud.kerst...@hotmail.com

To: twsocket@elists.org
Sent: Saturday, January 22, 2011 9:08 PM
Subject: Re: [twsocket] Midware create serverobject 'problem'.



Hi Francois,
Thanks for responding!
Well, there was my mistake, I only added the VC32 directory to my 
library-directory's, and not the midware-directory, as I thought it was only 
demo's.After adding to the library-directory's it is working.

Anyway, thank you Francois for the help, and have a good weekend.
Best regards,
Ruud Kerstens
PS, i do not find any v.pas, is this really needed?


From: francois.pie...@skynet.be
To: twsocket@elists.org
Date: Sat, 22 Jan 2011 20:51:04 +0100
Subject: Re: [twsocket] Midware create serverobject 'problem'.

Hi !

Search where v.pas file is on your system and add that folder to Delphi
search path. It is likely that this file is in midware folder.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

- Original Message - 
From: Ruud Kerstens ruud.kerst...@hotmail.com

To: ICS support mailing twsocket@elists.org
Sent: Saturday, January 22, 2011 7:36 PM
Subject: [twsocket] Midware create serverobject 'problem'.


 Hi All,

 I am using the latest ICS and Midware in Delphi XE, which works fine
 sofar.
 I can run the demo’s and I really like the Midware options, however when 
 I

 follow the tutorial ‘My First server’ I get into trouble..

 First steps work fine, until step 6, which I skip as it is optional as
 mentioned in that part. (No image editor in XE as well).
 Step 7 is what gets me in trouble.

 I follow the actions as mentioned, and when I click compile/Install, it 
 is

 asking for the dcu-files ([DCC Fatal Error] OverbyteMwDXeRun.dpk(61):
 F1026 File not found: 'OverbyteSObjBdeSql.dcu')
 The Midware-library is in the path (demo’s work fine as well), and I
 checked the search-path in the screen as well, which also uses the 
 midware

 library-path.

 Anybody an idea what I might be doing wrong?

 Best regards, and thanks,

 Ruud Kerstens
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Midware create serverobject 'problem'.

2011-01-22 Thread Ruud Kerstens

Hi Francois,
Got the first server working now, so that is fine. Just discovered that when i 
change the objserver file, i need to recompile this component to get it 
working, but it works just fine.
Despite of the demo's i see for ADO and BDE, i am using another database 
(absolutedatabase  : www.componentace.com), which is a BDE replacement.Is this 
just as easy to connect as the examples that are included with Midware, or do i 
need to create my own 'BDE' serverobject?
Best regards,
Ruud

 From: francois.pie...@skynet.be
 To: twsocket@elists.org
 Date: Sat, 22 Jan 2011 21:28:49 +0100
 Subject: Re: [twsocket] Midware create serverobject 'problem'.
 
  PS, i do not find any v.pas, is this really needed?
 
 Actually I wanted to type CTRL+V to insert 'OverbyteSObjBdeSql' I copied but 
 ctrl key was lost :-(
 
 -- 
 francois.pie...@overbyte.be
 http://www.overbyte.be
 
 
 - Original Message - 
 From: Ruud Kerstens ruud.kerst...@hotmail.com
 To: twsocket@elists.org
 Sent: Saturday, January 22, 2011 9:08 PM
 Subject: Re: [twsocket] Midware create serverobject 'problem'.
 
 
 
 Hi Francois,
 Thanks for responding!
 Well, there was my mistake, I only added the VC32 directory to my 
 library-directory's, and not the midware-directory, as I thought it was only 
 demo's.After adding to the library-directory's it is working.
 Anyway, thank you Francois for the help, and have a good weekend.
 Best regards,
 Ruud Kerstens
 PS, i do not find any v.pas, is this really needed?
 
  From: francois.pie...@skynet.be
  To: twsocket@elists.org
  Date: Sat, 22 Jan 2011 20:51:04 +0100
  Subject: Re: [twsocket] Midware create serverobject 'problem'.
 
  Hi !
 
  Search where v.pas file is on your system and add that folder to Delphi
  search path. It is likely that this file is in midware folder.
 
  --
  francois.pie...@overbyte.be
  The author of the freeware multi-tier middleware MidWare
  The author of the freeware Internet Component Suite (ICS)
  http://www.overbyte.be
 
  - Original Message - 
  From: Ruud Kerstens ruud.kerst...@hotmail.com
  To: ICS support mailing twsocket@elists.org
  Sent: Saturday, January 22, 2011 7:36 PM
  Subject: [twsocket] Midware create serverobject 'problem'.
 
 
   Hi All,
  
   I am using the latest ICS and Midware in Delphi XE, which works fine
   sofar.
   I can run the demo’s and I really like the Midware options, however when 
   I
   follow the tutorial ‘My First server’ I get into trouble..
  
   First steps work fine, until step 6, which I skip as it is optional as
   mentioned in that part. (No image editor in XE as well).
   Step 7 is what gets me in trouble.
  
   I follow the actions as mentioned, and when I click compile/Install, it 
   is
   asking for the dcu-files ([DCC Fatal Error] OverbyteMwDXeRun.dpk(61):
   F1026 File not found: 'OverbyteSObjBdeSql.dcu')
   The Midware-library is in the path (demo’s work fine as well), and I
   checked the search-path in the screen as well, which also uses the 
   midware
   library-path.
  
   Anybody an idea what I might be doing wrong?
  
   Best regards, and thanks,
  
   Ruud Kerstens
   --
   To unsubscribe or change your settings for TWSocket mailing list
   please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
   Visit our website at http://www.overbyte.be
 
  --
  To unsubscribe or change your settings for TWSocket mailing list
  please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
  Visit our website at http://www.overbyte.be
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
  
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SocketSpy to C++ Problem

2011-01-22 Thread Richard Christman
Hi Arno,

I was looking over my project and see that the processmessages loop I said
allows the program to complete successfully is enabled. To allow the error
this needs to be commented out. It's at the end of
WSocketServerClientConnect.

 -Original Message-
 From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
 On Behalf Of Arno Garrels
 Sent: Saturday, January 22, 2011 12:29 PM
 To: ICS support mailing
 Subject: Re: [twsocket] SocketSpy to C++ Problem
 
 Richard Christman wrote:
  Hi Arno,
 
  I took out the banner and still the error. I took out banner and
  bannertoobusy (individually and both together) and neither made
  difference.
 
  I also commented out all logging last week and no difference from
 that
  either.
 
 I tested with 2010 with some additional changes specific to Unicode,
 will try tomorrow with 2007 and let you know my results.
 
 --
 Arno Garrels
 
 
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be