Boost logo

Boost Users :

Subject: Re: [Boost-users] [iostream] exception propogation
From: eg (egoots_at_[hidden])
Date: 2010-02-24 13:01:27


On 2/24/2010 8:18 AM, Anand Patel wrote:
> I came across interesting exception propagation behavior across
> different platform (win32, linux). I have created several filters and
> custom filtering stream with my filters (boost 1.38-1.41). My filter
> throws BOOST_IOSTREAMS_FAILURE("some message"); whenever error condition
> occurs. On Linux exception gets propagated all the way to user using my
> stream. On Windows XP (VS 2008) it gets caught somewhere in boost
> framework or Windows. Moreover, after exception is silently caught and
> dropped, all the filters close method is called. This is where I run
> into issue.
> Is there anyway to ensure that upon exception no more data processing
> takes place withing filtering_stream and its chain?
>

I could be wrong, but I am not sure if anyone can really help without
seeing some sample code.

In any case, you may wish to try your tests again using boost 1.42 if
only because there were some exception related fixes that made it into
the iostreams library in this version.

For details on the iostreams fixes in this release, see:
http://www.boost.org/doc/libs/1_42_0/libs/iostreams/doc/release_notes.html


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