开发者

How is "Make Object ID" implemented in the .NET debugger?

开发者 https://www.devze.com 2022-12-29 00:04 出处:网络
I would like know how this feature is implemented in VS - I understand it holds some sort of weak-reference to the object in the debugged-application\'s memory, but how exactly is it accomplished?

I would like know how this feature is implemented in VS - I understand it holds some sort of weak-reference to the object in the debugged-application's memory, but how exactly is it accomplished?

I know simply trackin开发者_开发问答g the address (as in native code) wouldn't work, because the GC might move the object about, invalidating the address.

Thanks.


A description of it can be found here. It uses an unmanaged api.

0

精彩评论

暂无评论...
验证码 换一张
取 消