object_rep::add_dependency() assertion
Szymon Gatner <[email protected]> Wed, 19 Oct 2011 18:32:32 +0200
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <CALqx0+WojL_y_GXWZG74=gZeXx8kC4eU=M-fkKnqeAeHZDysNw@mail.gmail.com> |
Hi, I am getting assertion error in void object_rep.cpp line 48: assert(m_dependency_cnt < sizeof(object_rep)); I am never explicitly using dependency_policy but it is being used when wrap_base / deriving comes int play. To make things work again I commented out whole object_rep::add_dependency() method and things seem to work ok. Question is: what is the purpose of this method and why this assertion must hold? What are the consequences of me commenting this code out? I am sorry but I am unable to provide minimal example of my use case. But in a nutshell: assertion fails after bunch of calls to boost::signal that keep luabind::object instances which are representations of methods of classes defined in Lua (which are derived from classes defined in C++ that are wrapped with wrap_base). In a nutshell ;) Any suggestion appreciated. Regards, Simon -- Szymon Gatner The Lordz Games Studio www.thelordzgamesstudio.com ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct