Boost logo

Boost Users :

From: Jeroen van der Wulp (J.v.d.Wulp_at_[hidden])
Date: 2007-10-16 09:12:27


Hello,

I have some problems with the latest changes to asio, which turn out to
be caused by problems with boost::system. The newer versions of
boost::asio now use boost::error_code provided by boost::system for
error handling.

On OS X 10.4 with XCode 2.4.1 comparing two boost::error_code objects e1
& e2 always returns false. I believe this is caused by comparing objects
accross threads. But this is just a guess. A problem I noticed on with
Apple's version of gcc is that static instance variables behave strange,
there seems to be a copy for each variable in each compilation unit that
uses them? This may also somehow be the cause for my problems with
boost::system.

Another problem is that when I receive an error_code object, say e, from
asio, trying to print e.message() fails with an access violation. This
happens on Windows, Linux, OS X.

What am I doing wrong?

Thanks,

Jeroen van der Wulp


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net