| > connections. It sure runs a lot slower then, but I
> still get the errors.
Ah, I just found 2 errors in htsback.c, files that
aren't closed properly.
Around line 1889 (>>> = add/change), you have to add
a 'fclose(fp);' :
}
>>>fclose(fp);
} else { // Argh..
back[i].status=0; // terminé (voir plus loin)
And in htsback.c, around line 175, you have to replace
filecreate by a nex filecreateempty function :
if (back[p].tmpfile[0] && back[p].url_sav[0]) {
LLint size;
>>>filecreateempty(back[p].url_sav); // filenote
& co
if ((size = hts_zunpack(back[p].tmpfile,back
[p].url_sav))>=0) {
Also and add in htscore.c: (for example before
the 'int filenote' function)
// create an empty file
int filecreateempty(char* filename) {
FILE* fp;
fp=filecreate(filename); // filenote & co
if (fp) {
fclose(fp);
return 1;
} else
return 0;
}
And in htscore.h: (for example after the 'filecreate'
definition)
int filecreateempty(char* filename);
This should avoid problems of non-closed files, that
may be the cause of your problems. (fixed for upcoming
3.11)
| |