Hmm. I really don't know. @Sebastian : Could you please have a look at this?
2011/7/9 శ్రీ కాంత్ తియ్యగూర <[email protected]> > > > 2011/7/8 Vishesh Handa <[email protected]> > >> Hey Sri >> >> A couple of things - >> 1.) Use Nepomuk::Tag( tagNameAsAString ); >> not Nepomuk::Tag tag("resourceTerm"); and tag.setLabel( tagname ); >> >> 2.) A simple Nepomuk::File( url ), will do fine. >> You don't need to do Nepomuk::Resource( url ).toFile() as Nepomuk::File is >> a subclass of Resource >> > > > >> I tried out your code and it runs perfectly ( as I said on IRC ), the >> problem is from where you call the code. And just to prove that your code >> does work, I've created a scratch repo kde:scratch/vhanda/nepomuk-for-sri >> You can try it out over there. >> >> I think there are some threading issues, your debug output says : >> QObject::startTimer: >> QTimer can only be used with threads started with QThread >> >> PS: A mailing list is the correct place to ask question. Not a blog post. >> > > Hi I tried out the code as you said using Nepomuk::File , but what > happening is that the application is crashing at *this line* > > Nepomuk::File resourceFile( kurl ); > > and the *KDE Crash handler output* is this > > #7 0x037faaf4 in Nepomuk::Resource::Resource(QUrl const&, QUrl const&, > Nepomuk::ResourceManager*) () from /usr/lib/libnepomuk.so.4 > > #8 0x037ff4f5 in Nepomuk::File::File(KUrl const&, > Nepomuk::ResourceManager*) () from /usr/lib/libnepomuk.so.4 > > #9 0x00e21cfa in KoResourceTagging::writeNepomukRepo (this=0xc3770d0) at > /home/legend/krita-build/src/calligra/libs/widgets/KoResourceTagging.cpp:309 > > #10 0x00e22d1e in KoResourceTagging::~KoResourceTagging (this=0xc3770d0, > __in_chrg=<value optimized out>) at > /home/legend/krita-build/src/calligra/libs/widgets/KoResourceTagging.cpp:44 > > #11 0x086a7329 in ~KoResourceServer (this=0xc376dd0, __in_chrg=<value > optimized out>) at > /home/legend/krita-build/src/calligra/libs/widgets/KoResourceServer.h:111 > > #12 ~BrushResourceServer (this=0xc376dd0, __in_chrg=<value optimized out>) > at > /home/legend/krita-build/src/calligra/krita/plugins/paintops/libbrush/kis_brush_server.cpp:48 > > #13 BrushResourceServer::~BrushResourceServer (this=0xc376dd0, > __in_chrg=<value optimized out>) at > /home/legend/krita-build/src/calligra/krita/plugins/paintops/libbrush/kis_brush_server.cpp:53 > > #14 0x086a230f in KisBrushServer::~KisBrushServer (this=0xc375768, > __in_chrg=<value optimized out>) at > /home/legend/krita-build/src/calligra/krita/plugins/paintops/libbrush/kis_brush_server.cpp:151 > > Why it is crashing ? Do I need to give resource Manager ? > > -- > Regards > Srikanth Tiyyagura > > > -- Vishesh Handa
_______________________________________________ Nepomuk mailing list [email protected] https://mail.kde.org/mailman/listinfo/nepomuk
