0

When I run my application, it says CXX0017 error: symbol not found, whereas that particular variable does not even exist in the code. I used it previously, and then removed it. Now, even after I cleaned and rebuilt the solution, it is still throwing it. I've checked the modules, and the PDB file is correct. Also, I deleted the PDB file and built it again, but no use. This is in Visual Studio 2010. I've searched about this, and some say that this is a bug related to Visual Studio 2010. I wanted to ask if anyone found a solution to this?

Thanks for your time

NV Bhargava
  • 373
  • 2
  • 10
  • Where does it say this error? What are the exact steps that cause this error to be shown? Have you tried deleting the .suo file? (This will clear all your breakpoints, bookmarks, etc. as a side effect.) – Cameron May 26 '14 at 15:59
  • Have you tried cleaning the solution? (Build -> Clean solution) – user123 May 26 '14 at 15:59
  • @Mohammad he says he cleaned and rebuild the solution, so that is obvious, isn't it? – martijnn2008 May 26 '14 at 16:06
  • How did you check that the PDB file is correct? I am just curious because I never found any information about the file structure. – harper May 26 '14 at 16:07
  • @Cameron, This is just shown when I debug the application. I couldn't find the .suo file though, I can only see the .sdf and .sln files in the project directory. I feel like Visual Studio is caching the .pdb file info, and running my previous code although when I run the newer code. – NV Bhargava May 26 '14 at 16:07
  • @MohammadAliBaydoun, yes I cleaned it and tried it but doesnt work. – NV Bhargava May 26 '14 at 16:08
  • @user: Do you mean a dialog box pops up when you start debugging with this message? The .suo is a hidden file in the same folder as the .sln (close VS before deleting it). – Cameron May 26 '14 at 16:09
  • @harper, I'm sorry what I said was vague. I meant that the pdb file is being loaded correctly. – NV Bhargava May 26 '14 at 16:09
  • @Cameron, the symbol not found error is shown in the debug information. A pop-up is shown with the "access violation reading location 0xfffffff" error.. – NV Bhargava May 26 '14 at 16:18
  • @martijnn2008 I saw the 'rebuilt' part, but I missed the 'cleaned' part. – user123 May 26 '14 at 16:20
  • Also, the pop-up says Unhandled exception at 0x7398A465 (winspool.drv) in .exe: 0xC0000005: Access violation reading location 0x0000DE50. – NV Bhargava May 26 '14 at 16:37
  • Thanks everyone, I got it working. All I had to do was to remove watch when that error occurred! – NV Bhargava May 26 '14 at 17:26

1 Answers1

1

CXX0017 is a debugger error issued when a breakpoint watch uses an identifier that is not available. Remove or edit your breakpoints to stop using that identifier and the problem should go away.

Captain Obvlious
  • 19,754
  • 5
  • 44
  • 74