XMLPlatformUtils::Initialize question

Mario S.

Usenet Archive
Joined
Mar 30, 2004
Messages
3
Reaction score
0
Hi,

how can I determine, if the XMLPlatformUtils::Initialize was already called or not ? There is no static method XMLPlatformUtils::isInitialized. Perhaps this would be a nice feature in the next Xerces Release ? For now, I have a little workaround. Because it is really necessary that a TransService is loaded and XMLPlatformUtils::fgTransService is in any case not NULL after Initialize method was called, I use this behaviour and always check for the public static member variable
XMLPlatformUtils::fgTransService.
If it's NULL then the the PlatformUtils was not initialized and if it's not NULL, then I think I can be sure, that the Initialize was called.

Is this workaround okay or is there a nicer way ?

Best Regards,
Mario S.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top