Boost logo

Boost Users :

Subject: [Boost-users] boost::iostream exception
From: Lloyd (lloyd_at_[hidden])
Date: 2008-10-06 10:56:37


I am trying to decompress a file using boost::iostreams (1.35.0) library
built with zlib-1.2.3 . I am able to decompress the file with other
utilities but this program throws me an exception saying "gzip error". I
am able to uncompress other gzipped files. What could be the reason for
the exception? Any help is very much appreciated.


The decompress function is also added here

bool ParseHttp::Decompress(const char* inBuff, int inLen,char** outBuff,
int* OutLen,int type)
                return false;
        filtering_streambuf<input> in;
                case GZIP:
                case ZLIB:
        in.push(boost::make_iterator_range((const char*)inBuff,(const
        vector<vUnzip*> unZipV;
        int totLen=0;
                char* data=new char[CHUNK];
                int xyz=0;
                catch(exception& e)
                unZipV.push_back(new vUnzip(data,xyz));

    *outBuff=new char[totLen];
        int g=0;
        for(int k=0;k<unZipV.size();++k)
                delete unZipV[k];
        return true;

Scanned and protected by Email scanner

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at