The first thing that came to mind is to search for g_iNum in the entire code base and put breakpoints where ever it is being accessed. ;P
«_Superman_» _I love work. It gives me something to do between weekends.
_Microsoft MVP (Visual C++) (October 2009 - September 2013)
Polymorphism in C