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 su...@iflexsolutions.com on 2002/06/26 07:48:35 UTC

Problem in XalanTransformer

Hi 

I am facing memory leak problem in XalanTransform.transform() method.

my programme is like

int XMLConverter::convertXML(const char* xmlFile ,const char* xslFile ,const
char* outFile)
{

	
	XMLPlatformUtils::Initialize();
  	XalanTransformer::initialize();
	XalanTransformer theXalanTransformer;
	int	theResult = 0;
	if (outFile !=" " )
	{
    	
	    	theResult =
theXalanTransformer.transform(xmlFile,xslFile,outFile);
		        
        	  if(theResult != 0)
	    {
		    cerr << "XalanError: \n" <<
theXalanTransformer.getLastError();
	    }
          }
	else
           {
        
        	theResult =
theXalanTransformer.transform(xmlFile,xslFile,outFile);
	        
        if(theResult != 0)
	    {
		    cerr << "XalanError: \n" <<
theXalanTransformer.getLastError();
	    }
    }

	XalanTransformer::terminate();

	// Call the static terminator for Xerces.
	XMLPlatformUtils::Terminate();
	
    // Terminate Xalan.
	
	return theResult;

}


Is there any thing wrong or what I have to do.But When I am running the
sample XalanTransform Programme it's working fine....What will be the
solution Please let me know ASAP

Thanx and Regds
Sujit N

----------------------------------------------------------------------------

This message contains privileged and confidential information and is
intended only for the individual named. If you are not the intended
recepient you should not disseminate, distribute, store, print, copy or
deliver this message. Please notify the sender immediately by e-mail if you
have received this e-mail by mistake and immediately delete this e-mail from
your system.


E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of e-mail transmission.  If verification is required
please request a hard-copy version.


--------------------------------------------------------------------------