Project

General

Profile

Actions

Bug #3212

open

setAppRoot(): too late

Added by Saif Rehman almost 10 years ago. Updated almost 10 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.

Actions #1

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.

Actions #2

Updated by Koen Deforche almost 10 years ago

  • Assignee set to Wim Dumon
Actions #3

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

Also available in: Atom PDF