loadDataForExe don't work correct.

wu chen 21 Reputation points
2022-10-21T10:59:13.17+00:00

_NT_SYMBOL_PATH = srvD:\Symbolshttps://msdl.microsoft.com/download/symbols
already copy symsrv.dll to my app path

loadDataForExe seems don't load pdb from pdb server folder, all pdb is already downloaded.

Try open "D:\Symbols\symbols\dll\ntdll.pdb" failed.
Try open "D:\Symbols\dll\ntdll.pdb" failed.
Try open "D:\Symbols\ntdll.pdb" failed.
Try open "D:\Symbols\symbols\dll\ntdll.pdb" failed.
Try open "D:\Symbols\dll\ntdll.pdb" failed.
Try open "D:\Symbols\ntdll.pdb" failed.
Try open "C:\Windows\symbols\dll\ntdll.pdb" failed.
Try open "C:\Windows\dll\ntdll.pdb" failed.
Try open "C:\Windows\ntdll.pdb" failed.

but if i start my application use vs2019 F5, it worked.
Try open "C:\Windows\SYSTEM32\ntdll.pdb" failed.
SYMSRV: BYINDEX: 0x1
D:\Symbols*https://msdl.microsoft.com/download/symbols
ntdll.pdb
96EF4ED537402DAAA51D4A4212EA4B2C1
SYMSRV: PATH: D:\Symbols\ntdll.pdb\96EF4ED537402DAAA51D4A4212EA4B2C1\ntdll.pdb
SYMSRV: RESULT: 0x00000000

any suggestion? Or how to debug it?
Thanks.

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 28,841 Reputation points Microsoft Vendor
    2022-10-24T03:08:27.24+00:00

    Hi @wu chen ,

    Welcome to Microsoft Q&A forum.

    If you start your application by right-clicking it and choose run as administrator, will it work? Please try to navigate to the directories of those .pdb files and then right-click them > Properties > Security > Edit > and check to confirm that the related permissions have been set and assigned.

    Besides, are those files blocked like following screenshot(file property page):

    253340-image.png

    BTW, if there’s any permission limitation on your machine, please check and confirm that they don’t block these files from being opened.

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments

0 additional answers

Sort by: Most helpful