You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/05/30 10:58:18 UTC

DO NOT REPLY [Bug 9515] New: - PlatformSupport.dll and Windows 95/98

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=9515>.
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=9515

PlatformSupport.dll and Windows 95/98

           Summary: PlatformSupport.dll and Windows 95/98
           Product: XalanC
           Version: 1.3.x
          Platform: PC
        OS/Version: Windows 9x
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XalanC
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: egersdorf@kadel.cz


I found, that application XalanTransform.exe with 3 parametrs is not running on 
Windows 98 (my friend said, also on win95). Error message is "Error writing 
file: C:\whatever. The error code was 6."
Reason is, that PlatformSupport.dll is not able to create output file. In 
XalanFileOutputStream.cpp line 96 is checked return handle from CreateFile() 
with filename in Unicode. In case of error (on this OS all the time), there 
should be -1 (INVALID_HANDLE_VALUE), but on Win 98 there is 0! It's bug in 
Windows I think, but result is, Xalan is not working.
Solution can be simple:
if (theFileHandle != INVALID_HANDLE_VALUE && theFileHandle)

Regards
Vladi.