Hello All,

Greetings,

We have an application (Win32) which requires XSLT transformation. 
So we tried to use the xalan-c-1.11 (and xerces-c-3.1.1)  source code
(VC10 project).  But  calling of  XalanTransformer.transform(xmlIn,
xsltIn, xmlOut) routine is hanging  (Application has gone  to "Not
responding" state).
But the output file has been created successfully.

Build Environment:
OS      : Windows 7 enterprise (service pack 1), 64 bit operating system

IDE     : Visual studio 2010 ultimate


For your kind information, 

This issue is coming only in release mode build. Everything is working
fine in debug mode. And it also working fine with the binaries you have
supplied.

We did some debugging on this and we are able to locate the problem. The
information may be helpful for you.

The problem occurred in the following routine.

XalanOutputStream::flushBuffer()
{
        ...
        CollectionClearGuard<BufferType>    theGuard(m_buffer);         
        ...
}

During the destructor call of  CollectionClearGuard instance, It is
hanging.  shrinkToSize(theSize) has been called to pop_back the
elements. And, there it is hanging.
And one interesting thing is, if we use a filewrite()  or if we allocate
and use a local stack buffer then, it started working fine (we found
this while debugging). 

We were not sure about the cause, But may be a hidden issue or induced
by something else.

We are in need to build the xalan library with our native project
settings.  It is very important for us to solve this issue to proceed
further.

So, we are requesting your support and guidance in this regard.

Please let us know if you have any queries regarding this.  

Thank you,


Best regards,
P. Abirami








Reply via email to