[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Listview problem? (segfault)
From: Phil Thompson <phil () river-bank ! demon ! co ! uk>
Date: 2002-07-30 22:52:31
[Download RAW message or body]
Bart Verwilst wrote:
> On Tuesday 30 July 2002 21:07, Phil Thompson wrote:
> || Bart Verwilst wrote:
> || > I finally got an example!!!
> || >
> || > I noticed that everything goes fine untill i move my mouse or
> || > something... Please check it out...
> || >
> || > On Monday 29 July 2002 02:31, Jim Bublitz wrote:
> || > || On 28-Jul-02 Bart Verwilst wrote:
> || > || > Anybody at all?
> || > || >
> || > || > On Sunday 28 July 2002 17:46, Bart Verwilst wrote:
> || > || >|| Hi!
> || > || >||
> || > || >|| My app keeps segfaulting whenever i populate a listview with a
> || > || >|| lot of
> || > || >|| entries very fast (like reading entries out of a tuple and
> || > || >|| adding them).
> || > || >|| It doesn't happen always, but most of the time...
> || > || >|| Could somebody please tell me what i'm doing wrong?
> || > || >||
> || > || >|| Thanks!
> || > ||
> || > || QListView or KListView ??
> ||
> || After, admittedly, a very quick look, you don't seem to be following the
> || guidelines in the PyQt documentation related to threads.
> ||
> And _everything_ else works perfectly (in my main app), only the populating of
> the list segfaults.. (when i move my mouse, so i don't think it's my fault..)
> Please check it out :$
You are calling the QListViewItem ctor in a different thread. If you
want to do that then you must use the Qt thread classes and not the
Python thread module.
Look at the semaphore.py example included with PyQt - but be aware that
a bug in Qt 3.0.5 can cause it problems. (Qt 3.0.4 is fine.)
Phil
_______________________________________________
PyKDE mailing list PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic