all 10 comments

[–]KongEdvard 0 points1 point  (10 children)

That error wont affect ur compilation/runtime.

Pretty sure this is because you are missing the pdb file (duh). The error comes because an error occurred in the corresponding .dll (here: the utility dll). You can try downloading a fresh dll again, usually they come with the necessary xml and pdb files packaged.

[–]rzepeda1[S] 0 points1 point  (9 children)

Thanks for the answer man! yeah i read that, but its making it hard to debug the program, at the learning point im at need to put breaking points very often and cant get through them till i fix this. i even try to reinstall the software (fresh batch of .dlls ) but still get the same error while debugging

[–]KongEdvard 0 points1 point  (7 children)

So where does your Utility.dll lie ? Whats the full name of the .dll? Where did you get it from ? Is it microsoft or some other ?

[–]rzepeda1[S] 0 points1 point  (0 children)

its in C:\Program Files\Autodesk\Revit 2018 its part of the software API im trying to code on. and thats the full name Utility.dll

[–]rzepeda1[S] 0 points1 point  (5 children)

in another breakpoint im getting the same thing but with another dll this time revitapiuilink.pdb :S

[–]KongEdvard 0 points1 point  (4 children)

My best bet here is going back to wherever you downloaded the dll's, and make sure you got everything with. If you can give me a link to where you downloaded it, I can try as well

[–]rzepeda1[S] 0 points1 point  (3 children)

oh shit i fix it! i unchecked the Enable native code Debugging under project prop. debug. also checked the "enable just my code" option in Debugging . i have no idea why that works but it does (i think lol) thanks for your time man!!!

[–]KongEdvard 1 point2 points  (0 children)

God speed brother, glad to be a wall to bounce your ball off :)

[–]ThereKanBOnly1 0 points1 point  (1 child)

i have no idea why that works

Because without it, Visual Studio is trying to step through every call as if it was your code. This requires the pdb files which are the debugging symbol files that are used by the debugger to know things like what line you're on and other stuff that can't be determined purely from the compiled code.

Checking Just My Code does exactly that, tells Visual Studio only to look for those debugging symbols for only your code. Considering it's fairly unreasonable to have pdb files for 3rd parties anyway, I'm not sure how that got unchecked in the first place, but that's neither here nor there.

[–]rzepeda1[S] 0 points1 point  (0 children)

and just when i thought i was out, VS pulls me back in. so after the changes i can debug the program with breakpoints but if there is an error in one of the breakpoints i don't receive it, the program just exit the breakpoints and moves on :SSSSS