简体   繁体   中英

Debugging 64bit DLL inspector showing incorrect values

I've built a 64 bit version of the OpenH264 DLL in debug mode (with no compiler optimisations) and am calling it in C# (via Unity). I'm using Visual Studio 2017 to attach to the running Unity process and debug my dll.

I can place breakpoints and step through the code, however all values for the code seem to be random (or sometimes null).

For example this is where the debugger reports NULL as the value of a pointer but is stopped on the line after a failed NULL check .

Why is this happening and what can I do to get correct values when inspecting variables?

1 Please try to switch the Common Language Runtime Support under Configuration Properties : 在此处输入图片说明

2 Another potential reason is that the variable is not in the current context:

While debugging, Visual Studio will keep track of every variable in the current context

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM