I'm getting different results between Debug/32 and Release/32 for the following code with C++ Rest 1.4 using VS 2013. The code works in Release but in debug, inspecting uri contains bogus contents. Is Debug/32 dll broken? I doubled checked and it seems like the file is correct for VS 2013 debug 32.
uri
(<Error reading characters of string.>)
#include "stdafx.h"
#include "cpprest\http_listener.h"
int _tmain(int argc, _TCHAR* argv[])
{
web::http::uri uri(L"http://localhost");
std::wcout << uri.to_string();
}
Release correctly shows m_uri containing http://localhost but Debug has the following invalid result.uri
(<Error reading characters of string.>)
m_uri: <Error reading characters of string.>
m_components: {m_scheme=<Error reading characters of string.> m_host=<Error reading characters of string.> m_user_info=...}