VS2019 and ucrtbase.dll

Chris Jansen 21 Reputation points
2021-01-07T11:15:48.597+00:00

C# winform applications accessing a SQL Server by means of the Microsoft OLE DB Provider all work fine.
When using a third party provider supplied by Siemens, namely WinCC OLE DB Provider, applications crash
with exception code 0x0000409, indicating that the faulty module is the ucrtbase.dll.
This happens on different PCs, all running Windows 10 Prof. 1909. It happens with local SQL access or access
by means of another PC thru the network. After checking the Internet for possible causes and fixes, I found several
advices hinting to corrupted system files. I ran sfc /scannow, which couldn't detect any problems. Furthermore, Windows
Update problems were mentioned. I used DISM.exe /Online /Cleanup-image /Restorehealth which couldn't detect any
problem as well. I'm in touch with Siemens support, but I'd like to find out if there are more things worth checking in
the Windows environment. I'd be grateful for every advice.

Developer technologies | Visual Studio | Debugging
SQL Server | Other
0 comments No comments
{count} votes

Accepted answer
  1. RLWA32 49,666 Reputation points
    2021-01-07T11:26:10.503+00:00

    NT Status code 0xC0000409 corresponds to STATUS_STACK_BUFFER_OVERRUN.

    However, this status code is also used when the runtime library encounters an unrecoverable error and terminates the process. That would be a reason why ucrtbase.dll is identified as the faulty module, even if the problem originated elsewhere.

    For a more detailed discussion of the above, see STATUS_STACK_BUFFER_OVERRUN doesn’t mean that there was a stack buffer overrun

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Olaf Helper 47,516 Reputation points
    2021-01-07T11:28:16.717+00:00

    Siemens WinCC OLE DB Provider

    As you already wrote, it's a third-party product, not from Microsoft
    And the error occurs on client side, so it can't be caused by backend = SQL Server directly.
    Go ahead with Siemens support.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.