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++ Library : Other (not classified elsewhere) » Witz template cryptic error messages
Re: Witz template cryptic error messages [message #42943 is a reply to message #42942] Tue, 15 April 2014 13:24 Go to previous messageGo to previous message
mingodad is currently offline  mingodad
Messages: 53
Registered: February 2008
Location: Spain
Member
Changing the function to this make it works:

String GetIdentity(const Renderer *r)
{
	// This ugly hack expects that __identity__ is always present in r->var
	Http *http = const_cast<Http *>(dynamic_cast<const Http *>(r));
	if(!http)
		throw Exc("invalid POST identity call");
	Value val = http->var[0];
	String s;
	if(IsString(val))
	{
		s = http->var[0];
		if(s.GetCount())
			return s;
	}
	s = AsString(Uuid::Create());
	http->SessionSet0("__identity__", s);
	http->var[0] = s;
	return s;
}

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Skylark functions/links
Next Topic: [BUG] GLDraw on multiple window on the same time doesn't work
Goto Forum:
  


Current Time: Sun Apr 28 15:34:55 CEST 2024

Total time taken to generate the page: 0.02411 seconds