Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Strange behavior of Point in watches
Re: Strange behavior of Point in watches [message #22897 is a reply to message #22891] |
Tue, 25 August 2009 20:44 |
|
luzr wrote on Tue, 25 August 2009 10:07 | It is because correct stack frame for the function is not yet established - gdb reads incorrect values.
If you step inside, you they get corrected.
|
Thanks for reply. I think I understand what you mean - basically that I asked for the value before entering the function (or it's stack frame, more precisly). BUT: The same problem happens even when stepping inside. Let's take longer function, like: virtual void LeftDown(Point p,dword flags){
DUMP(p);
p.Offset(10,10);
Point pt=p;
DUMP(pt);
p=pt;
}
Then at any point in the function p watches yield nonsense. Watches for pt are correct (after it's assignment of course). Does that mean that watching any parameter passed to the function might be incorrect? That would be really confusing, especially for people who doesn't know about it, like me
Honza
|
|
|
|
|
Strange behavior of Point in watches
|
|
|
Re: Strange behavior of Point in watches
By: mirek on Tue, 25 August 2009 10:07
|
|
|
Re: Strange behavior of Point in watches
|
|
|
Re: Strange behavior of Point in watches
By: mirek on Wed, 26 August 2009 09:00
|
|
|
Re: Strange behavior of Point in watches
|
|
|
Re: Strange behavior of Point in watches
By: dolik.rce on Wed, 02 September 2009 04:47
|
|
|
Re: Strange behavior of Point in watches
By: mirek on Wed, 02 September 2009 17:59
|
|
|
Re: Strange behavior of Point in watches
By: dolik.rce on Wed, 02 September 2009 19:17
|
|
|
Re: Strange behavior of Point in watches
By: mirek on Wed, 02 September 2009 20:43
|
|
|
Re: Strange behavior of Point in watches
By: dolik.rce on Thu, 03 September 2009 10:19
|
|
|
Re: Strange behavior of Point in watches
By: mr_ped on Thu, 03 September 2009 11:11
|
|
|
Re: Strange behavior of Point in watches
By: dolik.rce on Thu, 03 September 2009 19:00
|
|
|
Re: Strange behavior of Point in watches
By: mr_ped on Fri, 04 September 2009 08:32
|
Goto Forum:
Current Time: Sat May 18 04:20:48 CEST 2024
Total time taken to generate the page: 0.01851 seconds
|