Crash in QVariantMap/QVariantList destructor
Hallo folks,
I recently built up a structure using QVariantMaps and QVariantLists to convert it to JSON afterwards.
But I experienced a strange behaviour when leaving the function and the destructor of this structure has been called.
It looked like this:
- QVariantMap outerMap;
- QVariantList outerList;
- QVariantMap innerMap;
- QVariantList innerList;
- innerList.append("foo");
- innerMap.insert("test", innerList);
- outerList.append(innerMap);
- outerMap.insert("test1", outerList);
If I replace the innerList with another QVariantMap or anything else, it workes fine. Is this a problem on my side or is this a bug in Qt? I also tried to clear all QVariantMaps and QVariantLists myself starting from the inner to outer before I delete them, but the same problems comes up..
Any ideas? ;)
7 replies
Mixing wrong DLLs can lead to that effect.
The Dependency Walker [dependencywalker.com] shows you the loaded (or missing) DLLs. Be aware, that it shows different results than using it from within the IDE, as the latter may have manipulated the search PATH.
You must log in to post a reply. Not a member yet? Register here!



