Ellonnic2 wrote:
Hello,

Many of Xalan's samples redirect the program's output to stdout by passing
in "cout" as the last parameter to the "transform(...)" method.  This works
fine with the executables provided along with the binary distribution of
Xalan.  However, if I instead build the sample source-code myself using
Visual Studio 2005, I get a crash/exception whenever I execute any transform
call using "cout" as the last parameter (the attached XalanTransform.cpp has
the simplest example of this).
theResult = theXalanTransformer.transform(argv[1], argv[2], cout);

Does anyone know why this happens and/or how to prevent it???
That seems very strange. Some questions:

1. Did you also build Xerces-C from source source, or did you download the binary distribution?

2. How did you build Xalan-C 1.10 using VS2005? You would need to make a lot of source code changes to build it (the current repository version builds with VS2005).

3. Have you run your executable in the debugger to determine where the access violation occurs?

Dave

Reply via email to