1

Topic: Small Feature Request - DeleteWatch

Hi Tobias,

Current Gurock.SmartInspect.dll Version: 2.3.0.6397

I have a small feature request - the ability to Delete a specific watch from the list of watches via code.  I don't want to do a ClearWatches(), but rather something like the following to remove that specific watch from the list:

ClearWatch(Level.Debug, "varname");
ClearWatch("varname");

This would be very handy for a multi-threaded app I'm developing - as threads are created and destroyed, I could easily see different counters that relate to a specific thread in the watch window, and remove the counts for threads that are no longer active.  Something like:

Thread 1 Bytes Processed = 100
Thread 2 Bytes Processed = 60

once "Thread 2" completes, it would remove the watch, like so:
Thread 1 Bytes Processed = 100

Make sense?  Or is there a way to do this already?

Thanks, and keep up the good work!

Todd

2

Re: Small Feature Request - DeleteWatch

Hello Todd,

Thanks for your posting. Currently there is no way to do this, but I can certainly see where this feature make sense. I added it to our feature request list. In the meantime, a workaround might be to set a watch to a special value if the related thread has exited, maybe -1 or 0 (so that you can easily ignore these values when looking at the watches toolbox).