Windows samples run without outputting anything
Reported by Martin Honnen:
"On some runs the sample programs (testXPath.exe, testXQuery.exe and testXSLT.exe) start and "work" for a time and then exit without outputting anything."
There does not seem to be a pattern with this behaviour.
- Subject changed from Windows samples run without outputting anythign to Windows samples run without outputting anything
It seems like the samples are failing intermittently in SaxonCGlue.c when it calls the following:
HANDLE hDll = LoadLibrary(name);
The name of the Dll is constructed by the function
snprintf function which adds a null-terminated character.
The argument to the LoadLibrary function is:
LPCTSTR lpLibFileName, which also pointer to a null-terminated character. But there seems to be issues with snprinf. As a workaround in the function loadDefaultDll() do the following or similar:
return loadDll("C:\Program Files\Saxonica\SaxonHEC1.1.3\libsaxonhec.dll" ");
- Status changed from New to Resolved
- % Done changed from 0 to 100
Bug fixed and committed to subversion on the 9.8 and 9.9 branches.
I have reworked how we build up the string for the dll library name and the path.
Added some more error causes when we use the snprintf function.
These changes also affects the Linux and MacOS versions as we have commoned up some of the code.
- Status changed from Resolved to Closed
- Fixed in version set to 1.2.0
Big fix applied in the Saxon/C 1.2.0 release.
- Fixed in version changed from 1.2.0 to 1.1.3
Please register to edit this issue
Also available in: Atom