kio_mhtml: QGArray::at: Absolute index XXXXX out of range
Spiros Georgaras
sngeorgaras at otenet.gr
Mon Dec 13 14:13:28 GMT 2004
Hi all
This is a strange problem that I have, because it does not happen with all the
input files I use.
When I try to read a sub-string I get the messages:
QGArray::at: Absolute index 17204 out of range
QGArray::at: Absolute index 22962 out of range
QGArray::at: Absolute index 22963 out of range
QGArray::at: Absolute index 17205 out of range
QGArray::at: Absolute index 22964 out of range
QGArray::at: Absolute index 17206 out of range
...
...
They keep scrolling and I have to Control-C.
The code is: QCString fContents=getFileContents(i);
and the routine called is
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);
}
I have checked and all the parameters (f, item[id].itStart, item[id].end) are
valid.
Does anybody knows what is wrong here?
Spiros
More information about the kfm-devel
mailing list