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.
#1 Updated by O'Neil Delpratt almost 3 years ago
- 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);
#2 Updated by O'Neil Delpratt almost 3 years ago
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" ");
#3 Updated by O'Neil Delpratt almost 3 years ago
- 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.
Please register to edit this issue