![]() Registered Member ![]()
|
I wrote a c++ program to restart ktorrent each time it crashes (more like disappears as nothing comes up to say its crashed).
Unfortunatly, it doesnt work ![]() At least for ktorrent, this is the output of the program:
it then repeats the reopening program already running terminated....... This is the program code:
Ktorrent stays open but I just get a lot of scrolling text on the console. Is there anyway I can get this to work as ktorrent closes at the most annoying times (when Im sleeping ![]() Thanks for any help |
![]() Moderator ![]()
|
|
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
In fact the problem seems to comes from small marked as not dl files !
I have similar problem with multi-file torrent where I ask ktorrent to not dl the .sfv file of the torrent. It makes ktorrent find the torrent as incompleted and stupidly re-dl that file (as I said I don't want it at all!). This whould be cool to fix it. Either by adding a set of files to avoid and store needed side chuck in .dtd or .dtd.chunck for example, like this : ignore[0]=some_torrent_relative_path/somefile.ext ignore[1]=some_torrent_relative_path/somefile.ext ... or makes ktorrent better use .dtd files to store only needed partial chunck to makes data integrity check works. (or lower the filecheck at torrent load) See this example : http://rapsys.free.fr/ktorrent/ktorrent ... dl_bug.png |
![]() Moderator ![]()
|
A backtrace would be nice, for this crash. Btw, for your restart program, you should use the function sleep, to sleep 5 seconds. That will get rid of the CPU usage, seeing that sleep will give the CPU to somebody else. |
![]() Moderator ![]()
|
This is totally not related. Anyway, I can see this happening when you import a torrent, or the data is allready there. But this should not happen with a download where you start from scratch. Also deselecting those tiny files is totally useless, the data of those files will be downloaded anyway. |
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
Ill do it tonight and save the debug log (everytime ive done this so far it hasnt crashed yet though so fingers crossed it does tonight ![]() Thanks for the sleep tip. |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft