Hi all,
I’m attempting to transfer complex data using events. Some of this data can have any number of children, so I’ve decided to use VariantVector for this purpose.
My problem stems from using a VariantMap within the VariantVector. I construct the map as normal, then add it to the vector:
If I read the map back (I’ve even tried this in the same function I add it in)
for (Urho3D::VariantVector::Iterator itr = vec.Begin(); itr != vec.End(); itr++)
{
Urho3D::VariantMap map = itr->GetVariantMap();
then anything I attempt to read from the VariantMap is null. I’ve attempted to debug this in Visual Studio, and found that it shows the correct capacity.
Any ideas on what I’m doing wrong?