kio_mhtml: QGArray::at: Absolute index XXXXX out of range

Spiros Georgaras sngeorgaras at otenet.gr
Mon Dec 13 17:20:57 GMT 2004


Leo Savernik wrote:
> Am Montag, 13. Dezember 2004 15:13 schrieb Spiros Georgaras:
> > QCString KmhtmlArchive::getFileContents(int id){
> >         if(items==0 || id>items){
> >                 kdDebug() << "[KmhtmlArchive::getFileContents] returning
> > null" << endl; return QCString("");
> >         }
> >         kdDebug() << "[KmhtmlArchive::getFileContents]:
> > item[id].itStart=" << item[id].itStart << ", item[id].end=" <<
> >  item[id].end << endl; return
> > f.mid(item[id].itStart,item[id].end-item[id].itStart); }
>
> Are those ids consecutive in range? If they are arbitrary, you should use a
> QPtrDict.
>
> mfg
>  Leo

Don't know what you mean 'consecutive in range'.

They are elements of a stracture that holds:
uint start - the start of mime part (header + data)
uint itStart - the start of the file's data
uint end - end of mime part
QCString header
QString contentLocation
QString contentID
QString dispFileName
etc.

These values (start, itStart, end) are offsets in QCString f (the whole mht 
file).

Spiros




More information about the kfm-devel mailing list