rameshhari / wsdl2objc

Automatically exported from code.google.com/p/wsdl2objc
0 stars 0 forks source link

xmlCleanupParser generated in proxy can cause corruption #194

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
xmlCleanupParser is generated in with connectionDidFinishLoading.

In programs that also use the libxml2 library this can cause corruption that is 
very difficult to find.  Resulting in EXC_BAD_ACCESS sometime after the first 
use of a webservice.

To fix the issue I removed the xmlCleanupParser calls and handled 
xmlInitParser/xmlCleanupParser in the main application that was consuming the 
webservice.

This is very important for multithreaded applications.

The following link explains the proper use of these functions:
http://xmlsoft.org/html/libxml-parser.html#xmlCleanupParser

Original issue reported on code.google.com by spourc...@gmail.com on 21 Dec 2012 at 1:19