Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,everyone. I call SymFindFileInPath function failed,do not know why,this is my code, I hope someone can help me to analyze.
C++
SymSrvGetFileIndexInfo(pszPath,&SymsrvInfo,FALSE);
BOOL B_Is=SymFindFileInPath(GetCurrentProcess(),
    "srv**d:\\symbols*http://msdl.microsoft.com//download//symbols",
    SymsrvInfo.pdbfile,
    (PVOID)&SymsrvInfo.guid,
    SymsrvInfo.age,0,8,pszFilePath,0,0);
if(B_Is==FALSE)
{
    printf("SymFindFileInPath\n");
    return TRUE;
}
SymSetSearchPath(hProc,"d:\\symbols");
Posted
Comments
Richard MacCutchan 30-Apr-12 13:58pm    
Your search path(s) do not look correct, they have asterisks and double forward slashes in them. Also the URL starts with msdl rather than msdn.
barneyman 30-Apr-12 19:21pm    
msdl is valid for that URL :)
Richard MacCutchan 1-May-12 4:40am    
Fine, I was merely getting you to check. But, like so many people who ask questions here you do not have any error checking in your code. When the SymFindFileInPath() call returns FALSE you should call GetLastError() to find out why.

1 solution

Have a look at How to use Symbol Server[^] - it might be the double slashes, or the double asterisk, or, (occam's razor) are your symbols present in d:\symbols?
 
Share this answer
 
Comments
C++Kernel 1-May-12 2:46am    
thank you answer!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900