I'm rather a newbie. But I had a similar problem. I found that
I could only really run XMLPlatformUtilsInitialize() once at executable
startup and could only run the XMLPlatformUtils::Terminate() command
once, e.g. in the dtor. Otherwise, it would throw exceptions when
attempts were made to create a parser.
hth
-Julie
-----Original Message-----
From: Horn, Nancy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 6:38 AM
To: '[EMAIL PROTECTED]'
Cc: Horn, Nancy; '[EMAIL PROTECTED]'; Bhalla, Manu
Subject: Problems with XMLSTring::transcod() method - Running xerces
1_5_1 from within a COM wrapper.
Hello,
We are trying to generate a wellformed XML String (from Dom_Node)
within
a COM wrapper, and are using the Apache xerces-c-1_5_1 library with our
code.
Running standalone (on Solaris), the (XML) code works perfectly.
However, when built into
a COM wrapper library, the same code dies when trying to use the
XMLString::transcode() method.
We traced this in the debugger (dbx) and found that the static variable
(gTranscoder) does
not get set properly when the parser is initialized (during
PlatformUtils::Initialize() ) from within the
COM environment.
We did not build with ICU - (we used "-tnative" option when
generating the make files).
Do I need to do this to get it to work in COM?
Has anyone else ever tried this? I believe the difference in
behavior is because
the code is running from a "COM wrapper", but I don't know how to solve the
problem to
get it to work.
Any help or suggestions will be appreciated, as I'm under a very
aggressive deadline to
get this done.
THANKS!!!!!
-Nancy Horn
----------------------------------------------------------------------------
---------------------------------------------------
Nancy E. Horn
Director, Software Development
Internet Commerce Services, ICOMS
One Indian Head Plaza
Nashua, NH 03060
603-324-2371
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]