Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, April 28, 2020 10:37 PM
I'm using the latest update of Visual Studio 2019 Community Edition. When I build my application in Debug Mode it starts and runs fine. When I build it in Release mode I get the "Failed to Activate" dialog box when the application starts.
I start the Release executable with debugging and get the output below. It suggests that there may be a problem loading ntdll.dll. I don't have the problem with the Debug mode build.
I'm using the Intel Math Kernel Library. When I comment out the code statement that calls the Intel library functions and rebuild the Release build starts and runs fine.
Thank you in advance for your help.
'OptionChains.exe' (Win32): Loaded 'D:\cpodc\Documents\Visual Studio 2019\Projects\OptionChains\Release\OptionChains\AppX\OptionChains.exe'. Symbols loaded.
'OptionChains.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'.
'OptionChains.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'.
'OptionChains.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'.
'OptionChains.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'.
'OptionChains.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'.
'OptionChains.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'.
'OptionChains.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'.
'OptionChains.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'.
'OptionChains.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'.
'OptionChains.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'.
'OptionChains.exe' (Win32): Loaded 'D:\cpodc\Documents\Visual Studio 2019\Projects\OptionChains\Release\OptionChains\AppX\mkl_intel_thread.dll'. Module was built without symbols.
'OptionChains.exe' (Win32): Loaded 'D:\cpodc\Documents\Visual Studio 2019\Projects\OptionChains\Release\OptionChains\AppX\mkl_core.dll'. Module was built without symbols.
'OptionChains.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00_14.0.27810.0_x86__8wekyb3d8bbwe\vccorlib140_app.dll'.
'OptionChains.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'.
'OptionChains.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp_win.dll'.
'OptionChains.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00_14.0.27810.0_x86__8wekyb3d8bbwe\msvcp140_app.dll'.
'OptionChains.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00_14.0.27810.0_x86__8wekyb3d8bbwe\vcruntime140_app.dll'.
'OptionChains.exe' (Win32): Loaded 'D:\cpodc\Documents\Visual Studio 2019\Projects\OptionChains\Release\OptionChains\AppX\libiomp5md.dll'.
Exception thrown at 0x779736F0 (ntdll.dll) in OptionChains.exe: 0xC0000139: Entry Point Not Found.
The thread 0xb228 has exited with code -1073741511 (0xc0000139).
The thread 0xb60c has exited with code -1073741511 (0xc0000139).
The program '[47912] OptionChains.exe' has exited with code -1073741511 (0xc0000139) 'Entry Point Not Found'.
Activation of the Windows Store app 'dffa959c-26eb-4458-bbbf-121a495b55e6_cr7g6hw6ky1ca!App' failed with error 'The app didn't start'.
All replies (4)
Wednesday, April 29, 2020 2:17 AM
https://software.intel.com/en-us/forums/intel-math-kernel-library
Wednesday, April 29, 2020 9:46 AM
Hi Craig6213,
Welcome to MSDN forum.
Which release of VS2019 are you using? What’s your project type?
As I know, the ntdll.dll file is usually stored in the C:\Windows\System32 directory, which is a system file. Please update your Windows to the latest version, to do it, just open Settings > Update and Security. If your Windows update have an error, please use the System File Checker tool to repair it. Then, update your VS2019 to the latest version and repair it via VS installer.
Hope it helps.
Best Regards,
Anna
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]
Wednesday, April 29, 2020 7:27 PM
I updated Windows, Visual Studio and the Intel MKL library and rebuilt the application. I'm now getting indications of a problem with KernelBase.dll. I ran the command regsvr32 KERNELBASE.DLL and got the following message:
"The module KERNELBASE.DLL loaded but the entry point DllRegisterService was not found. Make sure KERNELBASE.DLL is a valid DLL or OCX and try again.
I tried running sfc on KERNELBASE.DLL in safe mode but got the message. "Windows Resource Protection could not start the repair service.". I've been trying to use sfc for several months using the all the help available on web pages but I keep getting the same response. What can I do short of resetting my PC and rebuilding everything.
Regards
Craig.
Thursday, April 30, 2020 5:08 AM
This error is related to the Intel library which is not a Microsoft product. Suggest to ask Intel how to properly install and configure their stuff for your Windows version.
> I ran the command regsvr32 KERNELBASE.DLL and got the following message:
Of course. ntdll does not contain services registered in this way.
-- pa