[ 
http://issues.apache.org/jira/browse/XERCESC-1518?page=comments#action_12332558 
] 

Alberto Massari commented on XERCESC-1518:
------------------------------------------

1) Initialize and Terminate can be called any number of times, but it is best 
to call them just once, at startup and at shutdown, both for performance reason 
(they must allocate and deallocate a bunch of global objects) and for 
multithreading issues (they are not multithreaded functions, as their purpose 
is also to set up the multithread support)

2) if InputSource::fMemoryManager is NULL it means that you have created it 
before calling XMLPlatform::Inititialize. But in the code you pasted there is 
no InputSource created (just the one automatically created inside the call to 
parse(), but that should be deleted before the function ends) so I am wondering 
if you have a static instance lying somewhere.



> Always General Exception Error when being called from MFC application
> ---------------------------------------------------------------------
>
>          Key: XERCESC-1518
>          URL: http://issues.apache.org/jira/browse/XERCESC-1518
>      Project: Xerces-C++
>         Type: Bug
>   Components: Validating Parser (DTD)
>     Versions: 2.7.0
>  Environment: OS:windows XP Pro sp2
> compiler: VC++ 7.0 2002
> memory:512MB
> Xerces version:2.7.0
> Xalan version: 1.9
> ICU version:3.4
>     Reporter: Puyoman
>     Priority: Critical
>  Attachments: UAE1.GIF
>
> I built Xerces+ICU and the parsing MFC application.
> When my application window closed and end to ExitInstance(), general 
> protection
> error happened (read address:0xC0000005 place:0x00000000).
> In other case, if application don't call parse functions, these errors don't 
> happen.
> Its parse is validating parse and DOM creating.
> So much exception is generated:
> Microsoft C++ exception: xercesc_2_7::EndOfEntityException @ 0x0012263c
> Microsoft C++ exception: xercesc_2_7::EndOfEntityException @ 0x00123460
> Microsoft C++ exception: xercesc_2_7::EndOfEntityException @ 0x0011ead4
> Microsoft C++ exception: xercesc_2_7::EndOfEntityException @ 0x0011eb98
> Microsoft C++ exception: xercesc_2_7::EndOfEntityException @ 0x0011f8f8
> Microsoft C++ exception: xercesc_2_7::EndOfEntityException @ 0x0011f9bc
> Microsoft C++ exception: xercesc_2_7::EndOfEntityException @ 0x0011e8e4
> Does xerces (especially, debugging version) consume a large amount of 
> heap areas?
> Xerces destroys even the area of MFC and the application program. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to