|
Boost Users : |
Subject: Re: [Boost-users] [iostreams] Seeking with using stream<file_descriptor>::seekp() failes
From: Timothy Madden (terminatorul_at_[hidden])
Date: 2010-09-27 13:24:38
On 27.09.2010 13:07, Timothy Madden wrote:
> Hello
>
> Why do I get 'debug assertion failed: initialized_' when I try to seek
> on a boost::filesystem::stream<file_descriptor> ?
>
> I also tried with my own
>
> class seekable_fd: public device<seekable>
> {
> protected
> file_descriptor file_d;
> //....
>
> };
>
> to be use the device is seekable, and I get the same assert.
It turns out this is the behavior one gets when trying to seek on a
closed file ... somehow I managed to implicitly close the file with some
wrapper stream that was using it, before the seek ...
Timothy Madden
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