Re: add_dependency assertion error

Daniel Wallin <[email protected]> Thu, 30 Jun 2011 10:03:41 +0200
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
On Sat, Jun 25, 2011 at 11:45 PM, Szymon Gatner <[email protected]> wrote:
> I am getting assertion error in object_rep.cpp:
>
> void object_rep::add_dependency(lua_State* L, int index)
> {
>  assert(m_dependency_cnt < sizeof(object_rep));
>
>  [...]
> }
>
> As there is no comment or assertion message I have no idea what it means.
>
> Any ideas?

luabind uses the address of the object_rep as a key into the Lua
registry, to maintain a list of dependencies that are to be kept
alive. Do you have some example code that causes this problem?

-- 
Daniel Wallin
BoostPro Computing
http://www.boostpro.com

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2