Project

General

Profile

Bug #3212

setAppRoot(): too late

Added by Saif Rehman over 7 years ago. Updated over 7 years ago.

Status:
Feedback
Priority:
Low
Assignee:
Target version:
-
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.

#1

Updated by Wim Dumon over 7 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.

#2

Updated by Koen Deforche over 7 years ago

  • Assignee set to Wim Dumon
#3

Updated by Saif Rehman over 7 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

Also available in: Atom PDF