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 » Developing U++ » UppHub » Something wrong with Dispatcher?
Re: Something wrong with Dispatcher? [message #37412 is a reply to message #37154] Mon, 01 October 2012 22:03 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
finally i remembered Dispatcher..
sorry for the delay, hope you've been fine with your fix so far.

here comes the reason.

compiling with MSC i did not instantiate Clear method anywhere.
but you were right. to make sure the Dispatcher is empty, one either needs to Clear it manually, or to destroy the Dispatchables first (they will unlink themselves).

a Dispatchable can be destination to multiple sources, so doing an UnregisterAll in the Dispatcher would break that. one must unregister the current dispatcher only

	void Clear() { while(dests.GetCount()>0) dests[0]->Unregister(*this); }


i'll commit the changes..
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Allegro5 - Allegro game programming library v5.x
Next Topic: Bug in Docking
Goto Forum:
  


Current Time: Sun Apr 27 10:27:39 CEST 2025

Total time taken to generate the page: 0.01192 seconds