You're missing a backslash in the path..--GaitVerzonden vanaf mijn Samsung Galaxy-smartphone.-------- Oorspronkelijk bericht --------Van: Sylvain Pointeau <sylvain pointeau gmail com>Datum: 16-04-2016 10:23 (GMT+01:00)Aan: xml gnome orgOnderwerp: [xml] xmlOutputBufferCreateFile VS2015 I/O error : Bad file descriptorHello,porting my program on windows, I noticed that xmlOutputBufferCreateFile raised a message I/O error : Bad file descriptor. Below is the sample program that crashes for me:FILE *f = fopen("C:\\myfolder\testdata.xml", "w");
xmlOutputBufferPtr output = xmlOutputBufferCreateFile(f, NULL);
xmlOutputBufferWriteString(output, "WHY DO YOU CRASH?");
xmlOutputBufferClose(output); <- at this moment it displays I/O error : Bad file descriptor
fclose(f);
I linked on libs pre-compiled for win32,I also tried with the lib I compiled myself, it even crashes in this case (it does not display IO error)Please note that the parsing (SAX) runs well.Do you have any idea? is it a bug or something I am not doing well?Best regards,Sylvain