> Test::Test() : i(0){
>   void (Test::* pFunction)(void) = &Increment;  // #1debugger shows
pFunction=0
>   if (pFunction)
>      (this->*pFunction)();    // #2 but we still step into this line!!
> }


Are you allowing line #1 to execute?  Setting a breakpoint causes the
debugger to stop BEFORE the line is evaluated, which means if you want to
see whether pFunction has a value, set your breakpoint on the line reading:

    if (pFunction)

or single-step once after breaking on line #1.

---- --- -- -
Matthew D Moss
[EMAIL PROTECTED]



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to