[PyQt] Another wierd bug with QtWebKit
detlev
detlev at die-offenbachs.de
Sun Jan 10 11:40:55 GMT 2010
On Samstag, 9. Januar 2010, Phil Thompson wrote:
> On Sat, 9 Jan 2010 12:03:38 -0800, Karthik Tharavaad
>
> <karthiktharavaad at gmail.com> wrote:
> > Thanks for replying Phil, thats a great point which I didn't think about.
> > However 2 points
> > - Even if the QWebPage does not parent the QNetworkAccessManager,
> > shouldn't
> > it still hold a reference to it and keep it from getting deleted?
>
> Perhaps.
It probably does hold a reference (how else could it know, which network
access manager to use). And that is probably why it is crashing because
without assigning the network access manager object to a variable, the garbage
collector will collect it. That might result in an access to a non-existing
object; result: Bang!
>
> > - Even if the behavior is intended, under no circumstances should my
> > example program1 crash Python.exe the way it does right now. Is there
> > something wrong with the error handling code?
>
> No - what do you expect to happen?
>
> Phil
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
Detlev
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the PyQt
mailing list