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++ » U++ Developers corner » ASSERT when using ValueMap
Re: ASSERT when using ValueMap [message #47656 is a reply to message #47651] Wed, 22 February 2017 11:56 Go to previous messageGo to previous message
NilaT is currently offline  NilaT
Messages: 70
Registered: November 2011
Location: Austria
Member
I got a little bit further when changing my code to:
ValueMap result;
Value v = RawToValue(params.someVar);
result.Add("key1", v);


Then it crashes at the very last line, when I try to Add the whole ValueMap to RpcData with a self written Add method, which adds content not to ValueArray, but to ValueMap from RpcData... like this:
template <class T>
void        Add(String key, const T& value)  { Value v; ValuePut(v, value); out_map.Set(key, value); }


But it crashes at the same position.
If it helps, I output the type and bool from the condition:
ASSERT(ptr()->GetType() >= 255 || !svo[ptr()->GetType()]); // Check that svo type is not registered as Ref

type = 5 and the bool is false.

Any hints?
Thanks
 
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
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: C2280
Next Topic: Use zlib inside another library
Goto Forum:
  


Current Time: Sat May 11 07:38:36 CEST 2024

Total time taken to generate the page: 0.02309 seconds