Did you do XMLPlatformUtils::Init() before this code ?

Olivier

-----Original Message-----
From: Steve Heller [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 29, 2001 6:10 PM
To: [EMAIL PROTECTED]
Subject: mutex problem


In the following code:

int XMLFile::Open(const char* FileName)
{
    const char*              xmlFile = 0;
    DOMParser::ValSchemes    valScheme = DOMParser::Val_Auto;
    bool                     doNamespaces    = false;

    m_Modified = false;
    m_FileName = FileName;

    ifstream TestStream (FileName);
    String TestString;
    TestStream >> TestString;
    if (TestStream.fail())
      {
      m_Doc = DOM_Document::createDocument();
      DOM_Element NewChild = XMLUtil::CreateElement(m_Doc,"form");
      m_Doc.appendChild(NewChild);

      m_Modified = true;
      }

    else
      {

      // Instantiate the DOM parser.
      DOMParser parser;
}

The parser instantiation blows up with an exception in
XMLMutex::lock(). I'm using xerces-c-src1_3_0. Should I upgrade to the
latest stable version, and if so, what version is that?

--
Steve Heller, WA0CPP
http://www.steveheller.com
Author of "Learning to Program in C++", Who's Afraid of C++?", "Who's
Afraid of More C++?",
"Optimizing C++", and other books
Free online versions of "Who's Afraid of C++?" and "Optimizing C++" are
now available
at http://www.steveheller.com/whos and http://www.steveheller.com/opt

---------------------------------------------------------------------
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]

Reply via email to