Project

Profile

Help

Bug #4195

Windows samples run without outputting anything

Added by O'Neil Delpratt over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Windows
Start date:
2019-04-11
Due date:
% Done:

100%

Estimated time:
Found in version:
1.1.2
Fixed in version:
1.1.3

Description

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.

History

#1 Updated by O'Neil Delpratt over 2 years ago

  • Subject changed from Windows samples run without outputting anythign to Windows samples run without outputting anything

Update:

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 over 2 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 over 2 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.

#4 Updated by O'Neil Delpratt almost 2 years ago

  • 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.

#5 Updated by O'Neil Delpratt almost 2 years ago

  • Fixed in version changed from 1.2.0 to 1.1.3

Please register to edit this issue

Also available in: Atom PDF