Hi,<div><br></div><div>I am attempting the 5.0 beta of the vsdk, when I'm working normally (talking to a server) it seems to be working, but when I activate a ram only mode I get a bad table pointer back. So I have a simple Boost test that looks like the following:</div>
<div><br></div><div><br></div><div><div>BOOST_AUTO_TEST_CASE( TestTablesCreated )</div><div>{</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>I_Database_Ptr valDB = s_db->getVDatabase();</div><div>
<span class="Apple-tab-span" style="white-space:pre"> </span>BOOST_REQUIRE( valDB.IsNotNull() );</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>BOOST_REQUIRE_EQUAL(valDB->get_TableCount(),18);</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>IDzDBObjectList list = s_db->getRegisteredObjects();</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>IDzDBObjectIterator iter(list);;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>while(iter.hasNext())</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>{</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>IDzDBObject* curObj = iter.next();</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>QString tableName = curObj->getTableName();</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>I_Table_Ptr tab = valDB->get_Table( toString(tableName) );</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>BOOST_REQUIRE(tab);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>QVector<DzTableField*> fields = curObj->getColumnInfo();</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>BOOST_REQUIRE_EQUAL(fields.count(),tab->get_FieldCount());</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>BOOST_REQUIRE_EQUAL(fields.count(),fields.capacity());</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div>}</div></div><div><br></div><div>The db is valid. The table count is correct. The toString() is a simple conversion function to Valentina's string which I use elsewhere with no issues. However the return value that gets returned from get_Table is not NULL its an invalid pointer.</div>