![]() Registered Member ![]()
|
Hi, i just can't launch it!
A few days ago it gorked great but someone at home, wanted to use the pc and I think she just tiped "init 6" to go to windows. the fact is that when I restarted KDE all the progs that where running came up, except ktorrent, from this day it just crashes in every try to launch... i recompiled and reinstalled it several times and nothing happends.. PLEASE HELP here is the crash report:
|
![]() Registered Member ![]()
|
i could compile it with no errors nw thanks anyway!
the problem was that i tryed to insert an "OUT()" in code to see if i coul see some more info about torrents. in log or in debug mode.. i dont know why but it crashed right after the out() command... i commented it out and it worked.. does anybody knows (and this is more related with development...) why doesnt it output my text? his is the line tha i cemmented: Out(SYS_TRK|LOG_NOTICE) << "Con TorrentRatio = " << s.TorrentRatio << endl; in debug mode it hungs after printing: "Con TorrentRatio = <Num>" |
![]() Moderator ![]()
|
The logging system can be accessed from multiple threads, so to make it work and to not have lines from multiple threads mixed together, the following things happen :
Out() locks the mutex of the log, and endl unlocks it again. This means that any code using Out must close the line with endl, the following code will totaly block ktorrent : Out() << "Yeehaw !!!!!!!!!!!!!!!!!!!"; Out() << "We will never get here" << endl; That is pretty much the only reason why it would hang with the logging system. But you used endl, so it should not hang, maybe the compiler used the wrong endl, you should try using bt::endl, that way the correct one is used. |
Registered users: Bing [Bot], Evergrowing, Google [Bot]