Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: web::http::uri broken in v1.4 for Debug/32?

$
0
0
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.
#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=...}

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>