cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Access violation reading location 0xcccc
Access violation reading location 0xcccccccc
Apr 24, 2015 at 7:40am UTC
xpert
(2)
I am facing issue while executing C++ code.
Following is the sample code:
http::client client;
http::client::request request(signed_URL);
http::client::response response = client.get(request);
std::cout << body(response) << std::endl;
The code compiles successfully.
It through error on line:
--> std::cout << body(response) << std::endl;
ERROR Message:
Unhandled exception at 0x005138db in Check.exe: 0xC0000005: Access violation reading location 0xcccccccc.
Apr 24, 2015 at 11:32am UTC
ne555
(10692)
> Following is the sample code
Your sample code is useless.
Follow this guideline
http://www.eelis.net/iso-c++/testcase.xhtml
(ignore point 8)
Last edited on
Apr 24, 2015 at 11:33am UTC
May 2, 2015 at 6:04am UTC
xpert
(2)
I have upload the complete solution (.sln). You can download the code from the following link:
https://www.dropbox.com/s/avsts0xqh72pnbc/http_sample_using_C.zip?dl=0
Further, I have tried by signing the URL using C# code and then try that signed URL in C++. but found the same error. On the other hand, the C# code executes successfully.
Topic archived. No new replies allowed.