🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
2 messages
2 total messages Started by Stefan Beetonshu Tue, 15 Jun 2004 10:31
[BCB6] Strange behaviour of TServerSocket
#5732
Author: Stefan Beetonshu
Date: Tue, 15 Jun 2004 10:31
21 lines
1690 bytes
Using BCB6:

I have an application using TServerSocket in stThreadBlocking Mode. This 
TServerSocket is placed inside of a TDatamodule within a DLL, which is 
loaded on application startup.

In OnGetThread of my ServerSocket, i assign a new instance of a 
TServerClientThread child class (i'll name it TMySCT for reference 
here).  TMySCT::ClientExecute() will be called and i do process my data 
if present.

So far, this is working, but ...

I tried to compile without runtime packages and now it seems that the 
server is connected to my client, but my TMySCT::ClientExecute funtion 
isn't called. So no data is processed. What went wrong? As i said: It is 
working with runtime packages but it isn't working without.

I'm a little bit lost, please help me! Thank you in advance!

Stefan
Re: [BCB6] Strange behaviour of TServerSocket
#5737
Author: Stefan Beetonshu
Date: Wed, 16 Jun 2004 10:41
17 lines
1730 bytes
Stefan Beetonshu wrote:
> Using BCB6:
> isn't called. So no data is processed. What went wrong? As i said: It is 
> working with runtime packages but it isn't working without.

I recognized, that my ClientExecute is called for the first time, when 
my DLL get's unloaded, but not earlier. The Code is also working as 
normal application (with or without runtime packages), but not as DLL. 
When using bogus no-runtime/DLL combination, I can see that my thread is 
created and it seems that it's not suspended (debugger says "Runnable"), 
clients can connect (no error message), but my ClientExecute function 
won't be called until i unload my DLL (and at this point connection 
property is set false).

Can someone help me on that?

Stefan
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads