DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5936>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5936

COM Threading Model of COM binding (xerces-com)

           Summary: COM Threading Model of COM binding (xerces-com)
           Product: Xerces-C++
           Version: 1.6.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The Xerces COM wrapper (xerces-com) should be a replacement for the MSXML 
parser. xerces-com supports only appartment threaded applications (COM STA) but
MSXML supports free and appartment threaded applications (COM STA and COM MTA). 
This leads to a very bad performance if xerces-com is used in an COM MTA 
application.

If the COM binding supports both threading models it's a real replacement
for the MSXML DOM parser.

Changes:
1) All the COM wrapper classes inherit from:
    CComObjectRootEx<CComSingleThreadModel>
   they have to inherit from:
    CComObjectRootEx<CComMultiThreadModel>
2) Remove the line
    #define _ATL_APARTMENT_THREADED
   from src\com\stdafx.h
3) The rgs scripts have to be changed. 
   ThreadingModel from 'Apartment' to 'Both'?

With my application this xerces-com works without any problem.

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

Reply via email to