<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AcDbDatabase constructor failed why? in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319083#M26591</link>
    <description>how? should I open it with a different object first.&lt;BR /&gt;
&lt;BR /&gt;
I set it to null, is there a delete method or something?</description>
    <pubDate>Mon, 09 May 2005 13:22:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-05-09T13:22:38Z</dc:date>
    <item>
      <title>AcDbDatabase constructor failed why?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319081#M26589</link>
      <description>AcDbDatabase* db = new AcDbDatabase(Adesk::kFalse, Adesk::kTrue );&lt;BR /&gt;
&lt;BR /&gt;
is the only line of code. I amk trying to instantiate the Da6tabase object toopen adrawing.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I get heap errors everytime.&lt;BR /&gt;
&lt;BR /&gt;
Can anyone help&lt;BR /&gt;
&lt;BR /&gt;
Nick</description>
      <pubDate>Mon, 09 May 2005 03:08:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319081#M26589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-09T03:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbDatabase constructor failed why?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319082#M26590</link>
      <description>Nick:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I get heap errors everytime.&lt;BR /&gt;
&lt;BR /&gt;
  You need to delete the database after you're finished with it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
-- &lt;BR /&gt;
Owen Wengerd&lt;BR /&gt;
President, ManuSoft ==&amp;gt; http://www.manusoft.com&lt;BR /&gt;
VP Americas, CADLock, Inc. ==&amp;gt; http://www.cadlock.com</description>
      <pubDate>Mon, 09 May 2005 04:05:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319082#M26590</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-09T04:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbDatabase constructor failed why?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319083#M26591</link>
      <description>how? should I open it with a different object first.&lt;BR /&gt;
&lt;BR /&gt;
I set it to null, is there a delete method or something?</description>
      <pubDate>Mon, 09 May 2005 13:22:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319083#M26591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-09T13:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbDatabase constructor failed why?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319084#M26592</link>
      <description>After running this code the db pointer is still NULL?&lt;BR /&gt;
&lt;BR /&gt;
Out of memory i think...&lt;BR /&gt;
&lt;BR /&gt;
nick5454 wrote:&lt;BR /&gt;
&amp;gt; AcDbDatabase* db = new AcDbDatabase(Adesk::kFalse, Adesk::kTrue );&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; is the only line of code. I amk trying to instantiate the Da6tabase object toopen adrawing.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I get heap errors everytime.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Can anyone help&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Nick</description>
      <pubDate>Mon, 09 May 2005 13:43:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319084#M26592</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-09T13:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbDatabase constructor failed why?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319085#M26593</link>
      <description>try&lt;BR /&gt;
&lt;BR /&gt;
delete db;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;NICK5454&gt; wrote in message news:4838459@discussion.autodesk.com...&lt;BR /&gt;
how? should I open it with a different object first.&lt;BR /&gt;
&lt;BR /&gt;
I set it to null, is there a delete method or something?&lt;/NICK5454&gt;</description>
      <pubDate>Mon, 09 May 2005 13:50:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319085#M26593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-09T13:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbDatabase constructor failed why?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319086#M26594</link>
      <description>actually the pointer is valid but somewhere after is creates AcDbDatabase is fails with the heap.</description>
      <pubDate>Mon, 09 May 2005 17:23:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319086#M26594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-09T17:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbDatabase constructor failed why?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319087#M26595</link>
      <description>looks like allocRawMem fails.</description>
      <pubDate>Mon, 09 May 2005 17:24:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319087#M26595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-09T17:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbDatabase constructor failed why?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319088#M26596</link>
      <description>so it creates the object. then before it finished with the constructor it calls delete for some reason and bombs.&lt;BR /&gt;
&lt;BR /&gt;
Please someone help</description>
      <pubDate>Mon, 09 May 2005 18:00:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319088#M26596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-09T18:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbDatabase constructor failed why?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319089#M26597</link>
      <description>try this:&lt;BR /&gt;
&lt;BR /&gt;
AcDbDatabase* db = NULL;&lt;BR /&gt;
try&lt;BR /&gt;
{&lt;BR /&gt;
	db = new AcDbDatabase(Adesk::kFalse, Adesk::kTrue );&lt;BR /&gt;
}catch(...)&lt;BR /&gt;
{&lt;BR /&gt;
	//put a breakpoint here to see of an exception is thrown&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
also try to change the parameters values of the constructor to see what &lt;BR /&gt;
heapens&lt;BR /&gt;
&lt;BR /&gt;
nick5454 wrote:&lt;BR /&gt;
&amp;gt; so it creates the object. then before it finished with the constructor it calls delete for some reason and bombs.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Please someone help</description>
      <pubDate>Tue, 10 May 2005 07:47:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319089#M26597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-10T07:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbDatabase constructor failed why?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319090#M26598</link>
      <description>There are many samples codes in ObjectARX SDK,&lt;BR /&gt;
and you can learn  a lot from it.&lt;BR /&gt;
so before you post your Question,  plz try yourself,&lt;BR /&gt;
&lt;BR /&gt;
At last, i do not suggest you to using catch(...)</description>
      <pubDate>Fri, 13 May 2005 06:27:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319090#M26598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-13T06:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbDatabase constructor failed why?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319091#M26599</link>
      <description>You should check if you lock the current document before new a Database.&lt;BR /&gt;
AutoCAD is developed based on COM model. Even if you use multiple&lt;BR /&gt;
documents(databases), you still must lock doc except that ACAD has done for&lt;BR /&gt;
you. acedCommand, and/or your own defined commands, etc. have locked doc&lt;BR /&gt;
before executiving. And however, in some special cases, for example, while&lt;BR /&gt;
using modelless dialog, you must explicitly lock it!&lt;BR /&gt;
&lt;BR /&gt;
In fact, even if you dont delete db, the biggest problem is just memory&lt;BR /&gt;
leaking, but not crash your app.&lt;BR /&gt;
&lt;BR /&gt;
Lewis&lt;BR /&gt;
www.hlsolution.com&lt;BR /&gt;
HL Block Manager&lt;BR /&gt;
HL CurveTool&lt;BR /&gt;
HL STL Import/Export&lt;BR /&gt;
************************************************************************&lt;BR /&gt;
&lt;BR /&gt;
?AcDbDatabase* db = new AcDbDatabase(Adesk::kFalse, Adesk::kTrue );&lt;BR /&gt;
&lt;BR /&gt;
is the only line of code. I amk trying to instantiate the Da6tabase object&lt;BR /&gt;
toopen adrawing.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I get heap errors everytime.&lt;BR /&gt;
&lt;BR /&gt;
Can anyone help&lt;BR /&gt;
&lt;BR /&gt;
Nick</description>
      <pubDate>Tue, 17 May 2005 06:35:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbdatabase-constructor-failed-why/m-p/1319091#M26599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-17T06:35:32Z</dc:date>
    </item>
  </channel>
</rss>

