xmlSAXUserParseMemory Problems
By Ben Prendergast
08 May 2013 12:29
English
8 Replies
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.
Edited on 18 03, 2014
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.