The subject error is:

The GetLastError function returns the following error code 6:
Invalid handle

Currently, no fix is available.

NOTE: If you use the 64-bit version of the application on a 64-bit version of Windows Server 2003, the problem does NOT occur.

NOTE: If you use the same 32-bit application on a 32-bit version of Windows Server, the problem does NOT occur.