I have a project ported from bada that uses xmlSAXUserParseMemory. It was fine in bada but it is wreaking havoc in my Tizen app. If I use it too often it eventually crashes my app and using it even once after a call to EvaluateJavascriptN will call all subsequent calls to freeze or crash. Here is the code:
MethodResult* parse( ByteBuffer* buffer )
{
MethodResult* result = new MethodResult();
int ret = xmlSAXUserParseMemory( &(result->saxHandler), result, (char*)buffer->GetPointer(), buffer->GetRemaining() );
xmlCleanupParser();
if ( ret != 0 )
{
delete result;
return NULL;
}
return result;
}
Again, this worked fine in bada.