[odb-users] Question on Using ODB within a DLL

Boris Kolpackov boris at codesynthesis.com
Fri Jun 24 08:38:14 EDT 2011

Hi Thomas,

Szumowski, Thomas <thomas.szumowski at lmco.com> writes:

> And the null pointer exception occurs in the return line of 
> transaction::current() in transaction.cxx:
>   bool transaction::
>   has_current ()
>   {
>     return tls_get (current_transaction) != 0;
>   }

Hm, this is strange. I don't see why ODB cannot be used from the DLL
and one shouldn't need to do anything special for that. It looks like
the TLS support was not initialized properly in the ODB DLL. Would
you be able to create a small test case that reproduces this problem?
I will then try to figure out what's going on.


More information about the odb-users mailing list