Re: [xml] xmlOutputBufferCreateFile VS2015 I/O error : Bad file descriptor




On Sat, Apr 16, 2016 at 12:53 PM, Nikolay Sivov <bunglehead gmail com> wrote:
On 16.04.2016 11:23, Sylvain Pointeau wrote:
>
> FILE*f = fopen("C:\\myfolder\\testdata.xml", "w");
>
> xmlOutputBufferPtroutput = xmlOutputBufferCreateFile(f, NULL);
>
> xmlOutputBufferWriteString(output, "WHY DO YOU CRASH?");
>
> xmlOutputBufferClose(output); <- at this moment it displays I/O error :
> Bad file descriptor
>
> fclose(f);
>
>

Not sure if it's important, but I see that internally libxml2 opens with
"wb" mode in some cases.


no it does not solve the issue. 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]