You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Jesse Pelton <js...@PKC.com> on 2001/09/20 20:02:32 UTC

RE: using differnt instances of the parser causes ACCESS Violatio n

Skip the Terminate() call. You can't call Initialize() after Terminate(),
and Terminate() doesn't do any essential work anyway. (It releases lazily
allocated global memory so analysis tools don't report unfreed memory. The
memory will be released by the operating system when the process shuts down
anyway.)

-----Original Message-----
From: oriel bergig [mailto:bergig@cs.bgu.ac.il]
Sent: Thursday, September 20, 2001 8:10 AM
To: xerces-c-dev@xml.apache.org
Subject: using differnt instances of the parser causes ACCESS Violation


hi,
generally what im trying to do is:
// on module 1
  XMLPlatformUtils::Initialize();
  pParser = new DOMParser();
  delete pParser;
  XMLPlatformUtils::Terminate();
// on module 2
  XMLPlatformUtils::Initialize();
  pParser = new DOMParser();
  delete pParser;
  XMLPlatformUtils::Terminate();

i must use it that way (on differnt modules that run under the same
apllication)
but i get:
First-chance exception in TESTAPP.EXE (NTDLL.DLL): 0xC0000005: Access
Violation.
if i load differnt Dlls for each module it works, but its not a good
solution for me, because i have a unknown number of modules....
its not threads, just differnt module syncronicly,

any idea ?
thanks
Oriel






---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org