Actions
Bug #3212
opensetAppRoot(): too late
Start date:
05/26/2014
Due date:
% Done:
0%
Estimated time:
Description
I start my application with ---approot "..." command. And when I call WServer::setServerConfiguration(argc, argv, WTHTTP_CONFIGURATION) to set up the WServer an error is shown "setAppRoot(): too late, already configured".
It's not fatal however it is a false error message since I never set approot before that.
Updated by Wim Dumon almost 10 years ago
- Status changed from New to Feedback
Hi,
I can't seem to reproduce this. I start the hello world example with ---approot but I don't see that error. Can you put a breakpoint on that setAppRoot method and check from where it's called?
BR,
Wim.
Updated by Saif Rehman almost 10 years ago
My main.cpp
WServer Server = WServer(argv[0], "wt_config.xml");
try
{
Server.Initialize();
Server.setServerConfiguration(argc, argv, WTHTTP_CONFIGURATION); <---- HERE
...
}
in WServer.C, function void WServer::setServerConfiguration()
if (!appRoot.empty())
setAppRoot(appRoot); <--- HERE
Actions