Hmm. I really don't know. <br><br>@Sebastian : Could you please have a look at this?<br><br><div class="gmail_quote">2011/7/9 శ్రీ కాంత్ తియ్యగూర <span dir="ltr"><<a href="mailto:srikanth.tulasiram@gmail.com">srikanth.tulasiram@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br><br><div class="gmail_quote">2011/7/8 Vishesh Handa <span dir="ltr"><<a href="mailto:handa.vish@gmail.com" target="_blank">handa.vish@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey Sri<br><br>A couple of things - <br>1.) Use Nepomuk::Tag( tagNameAsAString );<br>not Nepomuk::Tag tag("resourceTerm"); and tag.setLabel( tagname );<br><br>2.) A simple Nepomuk::File( url ), will do fine.<br>
You don't need to do Nepomuk::Resource( url ).toFile() as Nepomuk::File is a subclass of Resource<br></blockquote><div><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
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.<br>
<br>I think there are some threading issues, your debug output says : <font size="1">QObject::startTimer: QTimer can only be used with threads started with QThread<br></font><br>PS: A mailing list is the correct place to ask question. Not a blog post.<br>
</blockquote></div><br clear="all"></div>Hi I tried out the code as you said using Nepomuk::File , but what happening is that the application is crashing at <b>this line</b><br><br> Nepomuk::File resourceFile( kurl );<br>
<br>and the <b>KDE Crash handler output</b> is this<br>
<br>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">#7 0x037faaf4 in Nepomuk::Resource::Resource(QUrl const&, QUrl const&, Nepomuk::ResourceManager*) () from /usr/lib/libnepomuk.so.4</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">#8 0x037ff4f5 in Nepomuk::File::File(KUrl const&, Nepomuk::ResourceManager*) () from /usr/lib/libnepomuk.so.4</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">#9 0x00e21cfa in KoResourceTagging::writeNepomukRepo (this=0xc3770d0) at /home/legend/krita-build/src/calligra/libs/widgets/KoResourceTagging.cpp:309</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">#10 0x00e22d1e in KoResourceTagging::~KoResourceTagging (this=0xc3770d0, __in_chrg=<value optimized out>) at /home/legend/krita-build/src/calligra/libs/widgets/KoResourceTagging.cpp:44</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">#11 0x086a7329 in ~KoResourceServer (this=0xc376dd0, __in_chrg=<value optimized out>) at /home/legend/krita-build/src/calligra/libs/widgets/KoResourceServer.h:111</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">#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</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">#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</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">#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</p>
<br>Why it is crashing ? Do I need to give resource Manager ?<br><font color="#888888"><br>-- <br>Regards<br>Srikanth Tiyyagura<br><br><br>
</font></blockquote></div><br><br clear="all"><br>-- <br><font color="#999999">Vishesh Handa</font><br>