[Kde-bindings] Working with connects to ruby blocks only work irregular

Robert Riemann robert.riemann at physik.hu-berlin.de
Fri Jul 23 13:24:58 UTC 2010


On Friday 23 July 2010 14:37:00 Arno Rehn wrote:
> On Friday 23 July 2010 13:35:50 Robert Riemann wrote:
> > Hi all,
> > 
> > In my application I want to download some thumbnail images using
> > KIO::storedGet. the kio job should return a signal 'result(KJob*)' when
> > the downloaded data is ready for reading.
> > 
> > Unfortunately It seems. that in my case the ruby block, which is
> > connected to the result signal, gets only irregualar executed.
> > 
> > I found out, then when I use c++synatax-like connections, everythng seems
> > to work as it should.
Example: 
http://github.com/saLOUt/KMiniTube/blob/3e69295a366ff0ecf3c6af5a2f5b440e54a51757/main.rb
see method thumbnail_url=
> > 
> > You find the (not) working example here: http://pastie.org/1056803
> > Maybe the kio job gets garbage collected in the meantime.
equal example with just a different implemented thumbnail_url= method:
http://pastie.org/1056973
> 
> Could you tell us which steps to take to reproduce the problem with your
> app? Or provide a simple testcase?
> I've just taken a look at the code, and I don't see anything that could be
> going wrong. So I need to test it myself.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20100723/53582b57/attachment.sig>


More information about the Kde-bindings mailing list