Re: [xml] xmlCharEncodingHandler->output getting invalid

oliverst online de wrote:

I have the problem, that I get exceptions when calling
xmlSaveFormatFileEnc(). The exceptions happens in xmlCharEncOutFunc()
when calling the handler->output() in line 1929 in encoding.c

I call xmlSaveFormatFileEnc() with an non-empty filename, a valid
xmlDocPtr, "iso-8859-1" and 1 for the format.

It works most of the times, but sometimes handler->output just points to
0xfeeefeee instead of a valid callback.

The structure handler has been freed, that's plain. Calling free() on Windows normally overwrites the freed block with 'feee' pattern. Try to locate the preceding call to free() with the address of the handler instance as an argument.


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