Excel Error Codes

Fix Excel 64-Bit COM Add-In DBGHELP Entry Point Error 0xC0000139

Nimra MalikNimra Malik Nov 2, 2026 869 views

Question details

The user is encountering an entry point error when a C++ COM add-in attempts to use LoadLibrary in 64-bit Excel.

How to Fix Excel 64-Bit COM Add-In DBGHELP Entry Point Error 0xC0000139
Product
Microsoft Excel (64-bit)
Device & OS
Windows 10
Scenario
Dynamically loading a business-logic DLL via LoadLibrary within a C++ COM add-in for Excel.
Observed behavior
The debugger reports error 0xC0000139 (Entry Point Not Found) involving dbgeng.dll, dbghelp.dll, and the SymSetDiaSession procedure due to a DLL version mismatch between Office and Windows.
Before you start

Ensure your Windows 10 operating system and Microsoft Office installation are fully updated, and create a system restore point before attempting to debug or modify system DLL dependencies.

Solution 1Recommended

Update Windows and Microsoft Office to Align DLL Versions

Since the error stems from a mismatch between the DBGHELP library included with Office and the Windows 10 OS, installing the latest patches can resolve the conflict.

Microsoft frequently updates system libraries like dbghelp.dll and dbgeng.dll. A discrepancy between the version shipped with the Office package and the one expected by your current Windows 10 build will trigger the 0xC0000139 Entry Point Not Found error when invoking LoadLibrary.

1
Check for Windows Updates

Press the Windows key + I to open Settings. Navigate to 'Update & Security' > 'Windows Update' and click 'Check for updates'. Install any pending updates and restart your computer.

2
Update Microsoft Office

Open Microsoft Excel, click on 'File' > 'Account' (or 'Office Account'). Under 'Product Information', click 'Update Options' and select 'Update Now'. Allow the process to complete.

3
Re-test the COM Add-in

Launch 64-bit Excel again, attach your debugger, and execute the LoadLibrary call to see if the DLL version mismatch has been resolved.

Update Windows and Microsoft Office to Align DLL Versions
Do not delete system files manually: Avoid manually removing or replacing dbghelp.dll or dbgeng.dll from the Office installation folders, as this can severely corrupt your Office installation.
Free Microsoft Office alternative

Try WPS Office for a Stable and Lightweight Spreadsheet Experience

If complex COM add-ins and DLL version mismatches in Microsoft Excel are disrupting your workflow, consider using WPS Office. It provides a highly stable, fast, and user-friendly environment for all your spreadsheet tasks without the heavy overhead of legacy add-in conflicts.

  1. 1. Download the Installer: Visit the official WPS Office website and download the free installer for Windows.
  2. 2. Install WPS Office: Run the setup file and follow the quick on-screen instructions to install the suite.
  3. 3. Open Your Spreadsheets: Launch WPS Spreadsheet and open your existing Excel workbooks directly with full formatting preserved.
Seamlessly compatible with Microsoft Excel formats (.xlsx, .xls, .csv)Lightweight installation with significantly faster launch timesFamiliar user interface requiring zero learning curve to migrateRobust built-in tools that reduce the need for third-party add-ins
microsoft office alternative - wps office

Frequently Asked Questions

What causes the 0xC0000139 DBGHELP error in Excel?

This error is typically caused by a version mismatch between the DBGHELP.dll and DBGENG.dll files included within the Microsoft Office package and those expected by the Windows operating system. When a C++ COM add-in calls LoadLibrary, it fails to find the correct entry points like SymSetDiaSession.

Can I manually replace the DBGHELP.dll file to fix this issue?

It is highly discouraged to manually remove, overwrite, or delete Office or Windows system DLL files. Doing so can cause further instability or prevent Office applications from launching entirely. You should rely on official Windows and Office updates to resolve library mismatches.

Are COM add-ins fully supported in 64-bit Excel?

Yes, 64-bit Excel supports COM add-ins. However, the add-in and all dynamically loaded libraries (DLLs) it references must be specifically compiled for 64-bit architecture to function correctly and avoid memory or load errors.