Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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 Smile

Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: tutorial Gui20c's defect
Next Topic: DropList + AddSeparator + mouse wheel problem
Goto Forum:
  


Current Time: Sat May 18 04:20:48 CEST 2024

Total time taken to generate the page: 0.01851 seconds