bakercp / ofxHTTP

A suite of HTTP tools, including clients and servers for openFrameworks.
MIT License
109 stars 40 forks source link

Crash when opening web page in debug configuration #34

Closed Meach closed 8 years ago

Meach commented 8 years ago

Hello,

I found some strange behavior with ofxHTTP. I am using it with OF 0.9 and master branch of ofxHTTP and other required addons in VS2015.

When I compile the app in debug configuration (doesn't matter if it's for Win32 or x64 platform) and then open the web page, I get an assertion error:

bugbugbug

Here is the call stack:

testWebpage_debug.exe!ofToDataPath(const std::basic_string<char,std::char_traits,std::allocator > & path, bool makeAbsolute) Line 328 C++ testWebpage_debug.exe!ofx::HTTP::FileSystemRoute::handleRequest(ofx::HTTP::ServerEventArgs & evt) Line 122 C++ testWebpage_debug.exe!ofx::HTTP::BaseRoute_ofx::HTTP::FileSystemRouteSettings::handleRequest(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse & response) Line 352 C++ testWebpage_debug.exe!ofx::HTTP::RequestHandlerAdapter::handleRequest(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse & response) Line 47 C++

It works fine when compiling in release configuration though. Let me know if you have questions.

bakercp commented 8 years ago

I believe I ran into this issue and the using the master branch of openframeworks seemed to fix it -- could you try with the master branch? See this issue:

https://github.com/openframeworks/openFrameworks/issues/4598

bakercp commented 8 years ago

I'm closing this as it should be fixed with 0.9.1 release.

Meach commented 8 years ago

I confirm that the above fix solve this issue, thanks!

bakercp commented 8 years ago

Super!