Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-debug-dev] Removing a memory monitor/rendering on debug termination

Hi,

I have implemented a specialized memory rendering which is displayed alongside the standard memory renderings (Hex, Ascii etc) in the memory view. What is slightly different about the rendering is that I (deliberately) don't add it to the list of available renderings (I do not have a RenderingBinding for it). Instead, I control the display of this rendering (only) from a view. This is all working as I want it to.

However, if I finish a debug session and then restart it, in the Memory View the associated memory monitors are still present, together with the rendering selection dialog. What I would like to do is to remove the monitor/rendering before its state is saved by the MemoryView.

I have tried watching for a DebugEvent.TERMINATE with a source of IDebugTarget, and removing the monitor/rendering at that time, but it is too late - the state has already been saved. Is there a way to achieve what I want?

Thanks,
--
Derek


Back to the top