[odb-users] collection mapping error

Boris Kolpackov boris at codesynthesis.com
Mon Mar 6 08:26:28 EST 2017


Hi Christian,

c.sell at byterefinery.de <c.sell at byterefinery.de> writes:

> It appears that the binding code is not executed because in function
> insert(), the data_binding_test_version () check fails:
> 
>     if (sts.data_binding_test_version ())
>     {
>       const binding& id (sts.id_binding ());
>       bind (sts.data_bind (), id.bind, id.count, di);
>       sts.data_binding_update_version ();
>     }
> 
> 
> in my test case program, the if branch is entered once for the collection
> object. With my target app, it isn't ever

Yeah, that's fishy. Smells like memory corruption. You can try two things:

1. Try to plug your QImage implementation into the test case. The idea is
   basically to try to "bring" the test case a step at a time closer to
   your application and see what triggers the change.

2. Try to run something like valgrind on your application (or the test
   case if you manage to make it fail).

Boris



More information about the odb-users mailing list