Conditional breakpoint on address change



Hello all,
can someone shed some light on how you're supposed to write expressions
for conditional data breakpoints in Visual Studio 2003 when you're
monitoring a certain memory address for changes?

I'm debugging an application where I would like to know when a certain
value is written to a specified location in memory, but I cannot for
the life of me get the conditional breakpoint to work. It seems that
whatever expression I'm using the breakpoint always fires when the
value at the specifed address changes, instead of only when the
specified condition is true.

The data breakpoint is set on e.g. 0x0013DC08 and the condition is set
to something like dw 0x0013DC08 == 0x0104. I've tried numerous
variations on this:

*(long*)(0x0013DC08) == 0x0104
0x0013DC08 == 0x0104
wo 0x0013DC08 == 0x00000104
0x0013DC08 == 0x00000104

but nothing seems to work.

The documentation isn't exactly helpful either...

Any help would be most appreciated.

Thanks,
Erik Finnman

.


Loading