Hello, 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
_______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml