[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Segfault using KIO::PreviewJob
From: Florian Roth <florian () synatic ! net>
Date: 2005-02-18 19:32:04
Message-ID: 200502182032.04303.florian () synatic ! net
[Download RAW message or body]
HI
I use a KIO::PreviewJob in my app to create preview images. But ever time I make a \
function call on this object my app segfaults
I use the following code:
if(preview_job){
preview_job->kill();
preview_job = 0;
}
Using other functions than kill() results in the same problem, too :(
It was working fine for some time and then suddenly it stopped working and is \
crashing all the time. There are two more parts of my programs which has the preview \
job:
preview_job = KIO::filePreview(KURL::List(item.url()), preview_frame->width() - 10, \
0, 0, 0, TRUE, FALSE, 0); connect(preview_job, SIGNAL(gotPreview(const KFileItem*, \
const QPixmap&)), this, SLOT(slotSetPreview(const KFileItem*, const QPixmap&))); \
connect(preview_job, SIGNAL(result(KIO::Job*)), this, SLOT(slotGotPreview()));
and
preview_job = 0;
If I remove the function call everything works fine besides of some problems of \
previous jobs ending after the current job are overwriting the previews... Thats why \
the old jobs have to be killed :)
Greets
Florian
> > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic