Exception thrown in KHTMLPart::selection()

Leo Savernik l.savernik at aon.at
Wed Jan 19 15:50:08 GMT 2005


Am Mittwoch, 19. Januar 2005 15:22 schrieb John Tapsell:
> I don't know.  It doesn't crash when I try lots of things.  just crashes
> occasionally.  Is there a way to at least check if this is going to fail?
> I'd rather do nothing then have it crash at least:

Catch it.

>
>  } else if(!n->renderer()->isReplaced() && !n->renderer()->isBR()) {
try {
>         r.setEnd( d->m_selectionEnd, d->m_endOffset );
} catch(DomException &) {
  kdDebug(6000) << "Should not happen" << endl;
}

or something similar.
>
> That causes the exception INDEX_SIZE_ERR
>
[...]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050119/9148dd95/attachment.sig>


More information about the kfm-devel mailing list