<?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: Exceptions while loading/unloading app in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501635#M17524</link>
    <description>&amp;gt;...you just need to set the debugger to {color:#ff00ff}break on unhandled exceptions{color} in order to break only on the one you're interested in.&lt;BR /&gt;&lt;BR /&gt;How do I do that ? &lt;BR /&gt;&lt;BR /&gt;BTW, I find that the EEFileLoadException is thrown when calling managed code from unmanaged. Does autocad do that?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;alex</description>
    <pubDate>Wed, 10 Jun 2009 20:25:41 GMT</pubDate>
    <dc:creator>alex_b</dc:creator>
    <dc:date>2009-06-10T20:25:41Z</dc:date>
    <item>
      <title>Exceptions while loading/unloading app</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501631#M17520</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Loading acad from the debugger causes:&lt;BR /&gt;&lt;BR /&gt;"First-chance exception at 0x02ffc1ec in acad.exe: 0xC0000005: Access violation reading location 0x00000004."&lt;BR /&gt;&lt;BR /&gt;and the debugger stops in Wincore.cpp at CWnd::WindowProc().&lt;BR /&gt;&lt;BR /&gt;Continuing and unloading the app causes:&lt;BR /&gt;&lt;BR /&gt;"First-chance exception at 0x00000000 in acad.exe: 0xC0000005: Access violation reading location 0x00000000."&lt;BR /&gt;&lt;BR /&gt;and stops in the same place. before the loadapp dialog returns.&lt;BR /&gt;&lt;BR /&gt;Loading the app again is ok.&lt;BR /&gt;&lt;BR /&gt;Unloading the app once more causes:&lt;BR /&gt;&lt;BR /&gt;"First-chance exception at 0x7830e1c1 (mfc80u.dll) in acad.exe: 0xC0000005: Access violation reading location 0x0000000a."&lt;BR /&gt;&lt;BR /&gt;and stops in Map_pw.cpp at CMapPtrToWord::CAssoc* CMapPtrToWord::GetAssocAt()&lt;BR /&gt;&lt;BR /&gt;(it seems that this one has something to do with the map used in CDocData??)&lt;BR /&gt;&lt;BR /&gt;All this with only Access violation exceptions enabled. If I enable more exceptions, I get more exceptions thrown.&lt;BR /&gt;&lt;BR /&gt;Here is the full list, with all exceptions enabled:&lt;BR /&gt;&lt;BR /&gt;First-chance exception at 0x7c812aeb in acad.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x0012e69c..&lt;BR /&gt;&lt;BR /&gt;First-chance exception at 0x7c812aeb in acad.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..&lt;BR /&gt;&lt;BR /&gt;First-chance exception at 0x7c812aeb in acad.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x0012de38..&lt;BR /&gt;&lt;BR /&gt;First-chance exception at 0x7c812aeb in acad.exe: 0xE0434F4D: 0xe0434f4d.&lt;BR /&gt;&lt;BR /&gt;First-chance exception at 0x7c812aeb in acad.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x0012e610..&lt;BR /&gt;&lt;BR /&gt;First-chance exception at 0x7c812aeb in acad.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..&lt;BR /&gt;&lt;BR /&gt;First-chance exception at 0x7c812aeb in acad.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..&lt;BR /&gt;&lt;BR /&gt;First-chance exception at 0x7c812aeb in acad.exe: 0xE0434F4D: 0xe0434f4d.&lt;BR /&gt;&lt;BR /&gt;First-chance exception at 0x02ffc1ec in acad.exe: 0xC0000005: Access violation reading location 0x00000004.&lt;BR /&gt;&lt;BR /&gt;Alas, this is beyond my feeble capabilities, so I can't make head nor tails of it.&lt;BR /&gt;&lt;BR /&gt;Can someone enlighten me?&lt;BR /&gt;&lt;BR /&gt;Many hanks in advance&lt;BR /&gt;&lt;BR /&gt;alex</description>
      <pubDate>Fri, 05 Jun 2009 18:26:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501631#M17520</guid>
      <dc:creator>alex_b</dc:creator>
      <dc:date>2009-06-05T18:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exceptions while loading/unloading app</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501632#M17521</link>
      <description>Alex:&lt;BR /&gt;
&lt;BR /&gt;
  Set the debugger to break when the Access violation exception is thrown, &lt;BR /&gt;
then examine the stack trace to determine the current state of your &lt;BR /&gt;
variables.  For example, check whether you're using a map before it has been &lt;BR /&gt;
constructed, or after it has been destroyed (you can tell that this is the &lt;BR /&gt;
case if it contains garbage values). &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 &lt;&gt;&lt;BR /&gt;
VP Americas, CADLock, Inc. &lt;&gt;&lt;/&gt;&lt;/&gt;</description>
      <pubDate>Fri, 05 Jun 2009 18:35:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501632#M17521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-05T18:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exceptions while loading/unloading app</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501633#M17522</link>
      <description>Owen&lt;BR /&gt;&lt;BR /&gt;It took me a while (plus being out of town) to make a few checks:&lt;BR /&gt;&lt;BR /&gt;a. It seems that most of the exceptions (save the map-related one) are thrown by every other program I tried, including some OARX samples.&lt;BR /&gt;&lt;BR /&gt;b. It seems that some of them are thrown before the debugged arx begins to load, and even when the arx doesn't load at all. If it's true, they are not related to the program being debugged.! ! !&lt;BR /&gt;&lt;BR /&gt;c. I tried all this on another machine, with similar results. I say similar because on the 2nd machine I got a few new exceptions thrown (one of them related to the acutprintf function).&lt;BR /&gt;&lt;BR /&gt;This is very confusing, in particular the exceptions who seem to be not program-related.&lt;BR /&gt;&lt;BR /&gt;(For the time being I postponed dealing with the map-related one, which is surely some mistake on my part).&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;alex</description>
      <pubDate>Wed, 10 Jun 2009 19:29:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501633#M17522</guid>
      <dc:creator>alex_b</dc:creator>
      <dc:date>2009-06-10T19:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exceptions while loading/unloading app</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501634#M17523</link>
      <description>Alex:&lt;BR /&gt;
&lt;BR /&gt;
  If the other exceptions are not related to your code, then ignore them. &lt;BR /&gt;
They may indicate an unrelated problem, or they may not.  Assuming the &lt;BR /&gt;
application that throws them also handles them, you just need to set the &lt;BR /&gt;
debugger to break on unhandled exceptions in order to break only on the one &lt;BR /&gt;
you're interested in. &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 &lt;&gt;&lt;BR /&gt;
VP Americas, CADLock, Inc. &lt;&gt;&lt;/&gt;&lt;/&gt;</description>
      <pubDate>Wed, 10 Jun 2009 19:40:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501634#M17523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-10T19:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exceptions while loading/unloading app</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501635#M17524</link>
      <description>&amp;gt;...you just need to set the debugger to {color:#ff00ff}break on unhandled exceptions{color} in order to break only on the one you're interested in.&lt;BR /&gt;&lt;BR /&gt;How do I do that ? &lt;BR /&gt;&lt;BR /&gt;BTW, I find that the EEFileLoadException is thrown when calling managed code from unmanaged. Does autocad do that?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;alex</description>
      <pubDate>Wed, 10 Jun 2009 20:25:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501635#M17524</guid>
      <dc:creator>alex_b</dc:creator>
      <dc:date>2009-06-10T20:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Exceptions while loading/unloading app</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501636#M17525</link>
      <description>Alex:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; How do I do that ? &lt;BR /&gt;
&lt;BR /&gt;
  Read through the post and comments here:&lt;BR /&gt;
http://stevesmithblog.com/blog/visual-studio-break-when-exception-thrown/&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Does autocad do that?&lt;BR /&gt;
&lt;BR /&gt;
  I have no idea. &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 &lt;&gt;&lt;BR /&gt;
VP Americas, CADLock, Inc. &lt;&gt;&lt;/&gt;&lt;/&gt;</description>
      <pubDate>Thu, 11 Jun 2009 03:45:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501636#M17525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-11T03:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Exceptions while loading/unloading app</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501637#M17526</link>
      <description>Owen:&lt;BR /&gt;&lt;BR /&gt;Alas, the link is relevant for managed code only. Handy to have it though for future.&lt;BR /&gt;&lt;BR /&gt;I suppose there is no equivalent solution for unmanaged code? I would sorely need it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;alex</description>
      <pubDate>Thu, 11 Jun 2009 17:52:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501637#M17526</guid>
      <dc:creator>alex_b</dc:creator>
      <dc:date>2009-06-11T17:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exceptions while loading/unloading app</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501638#M17527</link>
      <description>Alex:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Alas, the link is relevant for managed code only.&lt;BR /&gt;
&lt;BR /&gt;
  The link is relevant for both unmanaged and managed code. &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 &lt;&gt;&lt;BR /&gt;
VP Americas, CADLock, Inc. &lt;&gt;&lt;/&gt;&lt;/&gt;</description>
      <pubDate>Thu, 11 Jun 2009 19:13:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/exceptions-while-loading-unloading-app/m-p/2501638#M17527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-11T19:13:56Z</dc:date>
    </item>
  </channel>
</rss>

