Hey,
How do I set a breakpoint to occur when a byte in a buffer changes from 0x04h to any other value? I am using MSVC 6.0 and Windows XP.
The debugger complains hartily when I try to do this.
Here is my example breakpoint:Code:unsigned char* pbuf = new unsigned char[256]; for (int i = 0; i < 256; i++) {//INITIALIZE ALL DATA *(pbuf+i) = 0x04; } for (i = 0; i < 256; i++) {//CHANGE DATA TO SIMULATE RE-INITIALIZE SHARED MEM *(pbuf+i) = i; } delete[] pbuf;
*(pbuf+100) != 0x04
What is the best way to do this?
TIA,
ahoodin




Reply With Quote