Hi,
Thanks for your valuable inputs. I will explain the complete scenario.
I have two process, the first one is called master and the second one is configuration server. When the application comes up the configuration server is started and master connects to the configuration server through the client called config client.
The config client is a singleton class which exposes two API's one for creating the object and another for creating a socket client plus a listening thread .Configuration client is linked as a dynamic library with master process.
In order to find the bug, I modified config client entry function to have only single trace. Even with this simple code the thread exits and closes the client socket by itself.
Moreover the same code ( creating a client socket and listening thread ) implemented in the master process itself works fine.
Is this something to do with the dynamic linking?
wxWidgets 2.8.11 has been linked statically with my application.
Code: Select all
Code for configlclient:
void *ConfigClient::Entry(void)
{
logDebugMsg(__FILE__,__LINE__,wxT("configClient:: Thread entry poin function"));
while(1){};
}
Code: Select all
Logs
10:30:51: SESSION 0:CONFIGURATION SERVER :cfgConfigserver.cpp:315:ConfigServer:: Configuration server socket is created and listening on port 4987.
10:30:51: SESSION 0:CONFIGURATION SERVER :cfgConfigserver.cpp:338:config Server: sem post is success: No error
10:30:51: SESSION 0:CONFIGURATION SERVER :cfgConfigserver.cpp:181:ConfigServerApp: New configuration object is created successfully for the configuration port 4987
10:30:54: SESSION 0:MASTER :test.cpp:91:Config Server started at port (4987) with process id (3488)
10:31:56: SESSION 0:MASTER :fwConfigclient.cpp:173:configClient:: Initializing the Config client for the process 3 for the configuration port 4987
10:32:03: SESSION 0:MASTER :fwConfigclient.cpp:253:configClient::Connection established with server
10:27:19: SESSION 0:MASTER :fwConfigclient.cpp:1266:configClient Broadcasting thread Destroyed. OnExit()
wxWidgets version : 2.8.11
Platform : windows
IDE : eclipse - galeleo
Compiler : mingw, g++ 4.5
Binutils : 2.20
Regards
Johnnie