Add-Ons & Services

XCode 3.1.2 HTTPResponse getReason is null

Please post support and help requests here.
Posts: 1
Joined: 04 Feb 2013, 19:38

XCode 3.1.2 HTTPResponse getReason is null

Postby hoinxx » 04 Feb 2013, 19:59


I guess I ran into some kind of configuration problem, but I just don't get it. I'm running:

Mac OS X 10.5.8
XCode 3.1.2
Poco 1.4.6

I built the dylibs first:
./configure --config=Darwin32-gcc

but I wanted to link statically, without installing the libraries into my system, so I built the static libs:
./configure --config=Darwin32-gcc --static

Then I copied the headers and the static libs into my project dir (I have the complete project ready for upload if someone is interested).
Created the xcode-project, setup the include paths, build, linked..., everything fine.

I ran the example at http://www.codeproject.com/Articles/252 ... -with-HTTP, but executing this line I crashed

cout << res.getReason(); // Program received signal: “EXC_BAD_ACCESS”.

the rest of the example worked, so I checked with the following minimal code:

#include <Poco/Net/HTTPResponse.h>
#include <iostream>

int main(int argc, char **argv)
Poco::Net::HTTPResponse res;
std::cout << res.getReason (); // <------------------------ crashes
return 0;

I checked res.getReason ().c_str () that was null, but it should be "OK"!
So I stepped into the CTOR of HTTPResponse and the member _reason was indeed initialized to "OK"...

Is there anything I could have messed up? stdlib versions? Any hint appreciated!!!

Thanks in advance for any help or suggestion!

Return to “Support”

Who is online

Users browsing this forum: No registered users and 2 guests