[email protected] wrote:
[email protected] wrote:
Hi ,
I have a c++ multi-thread application in AIX
In Multi-thread env , can i use for that ?
No, you must synchronize the calls. The other option is to simply
initialize when your application starts, and terminate when it ends.
hi, like this ?
In this sample , xml_function will core dump in first XML code ( XMLCh *
XML_Core = XMLString::transcode("Core") )
Initialize and terminate have only once in Server Main ?
I don't know what "Server Main" is. There is a main() function in C++
which is the entry point for every program:
int
main(int argc, char* argv[])
{
try
{
XMLPlatformUtils::Initialize();
}
catch (const XMLException& toCatch)
{
std::cerr << "Failed to initialize the Xerces-C library.\n";
return 1;
}
start_threads_and_wait_for_them_to_finish();
XMLPlatformUtils::Terminate();
return 0;
}
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]