You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Samar Lotia <sl...@siebel.com> on 2002/04/18 19:18:31 UTC

RE: problems in initalising DOMParser object within xalan-c for d om input/output

I don't know if you mentioned this in earlier messages. If you did, I
apologize. What version of Visual C++ are you using? If it is other than 6.0
you may need to rebuild Xalan and Xerces.

Samar Lotia

-----Original Message-----
From: minikittygo@hotmail.com [mailto:minikittygo@hotmail.com]
Sent: Thursday, April 18, 2002 12:15
To: xalan-c-users@xml.apache.org
Subject: Re: problems in initalising DOMParser object within xalan-c for dom
input/output


Hi Dave

the only reason why i use the xalan's C API is because it will not 
initialise properly if i initialise the xalan and xerces through the c++ 
API XMLPlatformUtils::Initialize() and xalanTransformer::initialize().(i 
initialise xerces and xalan in the constructor of Myapp (the CWinapp class) 
and terminates it in the deconstructor).  in fact it will not perform 
transformation at all under debug version (but it will in release version) 
and i have check that the debug bulid uses Debug Multithreaded DLL and 
releases uses Multithreaded DLL. and it still gives me the same 
problem..... :( 
do you have suggestion over this, please help....

Many thanks
regards
kit 


>From: "David N Bertoni/Cambridge/IBM" <da...@us.ibm.com>
>To: xalan-c-users@xml.apache.org
>Subject: Re: problems in initalising DOMParser object within xalan-c for 
dom input/output
>Date: Thu, 18 Apr 2002 09:25:19 -0700
>
>
>I'm very confused by your description of the problem.
>
>If you're using C+-+-, there's no need to use Xalan's C API, so I don't
>understand why you're using it.  In your program's main() function, before
>you make any Xerces or Xalan calls, you should call
>XMLPlatformUtils::Initialize() and XalanTransformer::initialize().  When
>your program is about to exit, you should call XMLPlatformUtils::Terminate
>() and XalanTransformer::terminate(), if you're interested in having 
memory
>freed for the purposes of detecting memory leaks.
>
>Please make sure you're linking with the proper run-time libraries.  You
>must use the Multithreaded DLL, or Debug Multithreaded DLL libraries.
>Often, a debug build will crash when linked using the wrong run-time, even
>though a release build will not.
>
>The Xerces binaries that come with Xalan are directly from their
>distribution.  If they were corrupt, we certainly would have heard of it 
by
>now and replaced the distribution.
>
>Dave
>
>
>
>
>                       "+Z5c- +W1CCrw-"
>                       <minikittygo@hot         To:      
xalan-c-users@xml.apache.org
>                       mail.com>                cc:      (bcc: David N 
Bertoni/Cambridge/IBM)
>                                                Subject: Re: problems in 
initalising DOMParser object within xalan-c for dom
>                       04/18/2002 03:33         input/output
>                       AM
>
>
>
>
>
>Hi... just adding more information regarding this question, actually 
xerces
>
>is initialised however i find there is one thing that is interesting.... 
on
>
>the release version everything works fine with no complaint whatsoever, 
but
>
>in the debug version it complains abouts it (in fact i could not 
initialise
>
>xerces properly without calling it through the xalanCAPI, whereas the
>release version works fine with both methods of initialising from 
xalancAPI
>
>and XMLPlatformUtils::Initialize();)
>
>i might be totally wrong but i was wondering could it be problems with
>xerces1.6.0D.dll that comes with xalan?
>
>mank thanks
>Regards
>Kit
>
>P.S. sorry this question may lies within the xerces-c mailing list but
>since i am using the xerces parser from xalan i thought it is more
>appropiate to sent it through the xalan mail list, i am sorry if this has
>cause any inconvience
>
>
>_________________________________________________________________
>+T391KA- MSN 
Messenger+/wyCB2cLU8tXKH3aTgqASlkp/xo-http://messenger.msn.com.hk
>
>
>
>
>
>




_________________________________________________________________
在 http://explorer.msn.com.hk/intl.asp 免費下載 MSN Explorer