How Can I Find Out Where My Pointer Is Getting Changed?
ptr, should be pointing to a specific memory block, but it is pointing somewhere else. How can I find out where it is getting changed?
Set a data breakpoint on
ptr. This breakpoint causes the program to halt when the address pointed to by
ptr changes. If you set the breakpoint on
*ptr instead, the breakpoint halts the program when data at the location pointed to by