[odb-users] Sections in view's result causes exception
Lukas Obermann
obermann.lukas at gmail.com
Wed Dec 14 13:44:55 EST 2016
Hi Boris,
unfortunately i->data is not NULL …
Looking at the section in the debugger it returns following
section_container odb::section
state_ odb::section::(anonymous struct)
loaded unsigned char '\0‘
changed unsigned char '\0'
armed unsigned char '\0'
restore unsigned char '\0‘
user unsigned char '\0‘
also the assert is not triggered.
Lukas
> Am 14.12.2016 um 17:48 schrieb Boris Kolpackov <boris at codesynthesis.com>:
>
> Hi Lukas,
>
> Lukas Obermann <obermann.lukas at gmail.com> writes:
>
>> m_cdb.getDB()->load(*(i->data), i->data->section_container);
>
> Can you try to "unpack" it like this and see what happens:
>
> std::shared_ptr<ODBData> d (i->data);
>
> assert (d != nullptr);
>
> m_cdb.getDB()->load (*d, d->section_container);
>
>
>> As the sections work without issues on other parts where I do not use
>> Views I assume that this has something to do with the View.
>
> I don't see how the view can affect it. My only guess is that i->data
> is NULL and you get the exception a second before getting a segfault ;-).
>
> Boris
More information about the odb-users
mailing list