The following program runs fine in Debug mode, but in Release mode it
crashes when a request comes in.
Note that boost::starts_with is in a function that is never called.
If I replaceinternalPath() with a const string then it's OK.
Since it's in Release mode, it's hard to pinpoint the bug. I don't know
if it's a problem within WT(2.2.1), boost(1.36) or Visual Studio 2008.
Can someone with VS help tests this?
My temporary solution is to replace boost::starts_with with my
self-brewed version.
#include <boost/algorithm/string.hpp>
#include <Wt/WApplication>
#include <Wt/WEnvironment>
using namespace Wt;
class TestApplication: public WApplication{
public:
TestApplication(const WEnvironment &env): WApplication(env) {}
void f();
};
void TestApplication::f(){
boost::starts_with(internalPath(), "a");
}
WApplication *createApplication(const WEnvironment &env)
{
return new TestApplication(env);
}
int main(int argc, char *argv[]){
return WRun(argc, argv, &createApplication);
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest