<?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: Debug exceptions in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Debug-exceptions/m-p/297139#M8417</link>
    <description>&lt;BLOCKQUOTE&gt;MarkHenryC wrote:&lt;BR /&gt;Yes that's the problem I'm having. It will jump to AC's handler, even if I bracket an error in a try/catch block.&lt;BR /&gt;
&lt;BR /&gt;
But you're right, I probably have to tweak my debug settings. I don't have them on "full" as there are a number of harmless first-chance exceptions thrown outside of my code.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
ARCHICAD does install a low level exception handler, you can't do much about that.&lt;BR /&gt;
&lt;BR /&gt;
Ralph's suggestion is the good one, just adjust your debugger to stop when an exception is thrown.&lt;BR /&gt;
&lt;BR /&gt;
Having a local try-catch block should work; so in your case I think you have a different kind of exception (a non-C++ one), like an access violation.&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
    <pubDate>Fri, 02 Oct 2015 07:51:53 GMT</pubDate>
    <dc:creator>Akos Somorjai</dc:creator>
    <dc:date>2015-10-02T07:51:53Z</dc:date>
    <item>
      <title>Debug exceptions</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Debug-exceptions/m-p/297136#M8414</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I'm guessing ArchiCAD installs a low-level hook (I'm on Win 7) to catch exceptions. This makes it hard to identify where the problem occurs in the plugin, as AC takes over &amp;amp; displays call stack etc. Is there any way to switch this off for a debugging session?&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Sep 2024 07:51:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Debug-exceptions/m-p/297136#M8414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-24T07:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Debug exceptions</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Debug-exceptions/m-p/297137#M8415</link>
      <description>&lt;BLOCKQUOTE&gt;MarkHenryC wrote:&lt;BR /&gt;I'm guessing ArchiCAD installs a low-level hook (I'm on Win 7) to catch exceptions. This makes it hard to identify where the problem occurs in the plugin, as AC takes over &amp;amp; displays call stack etc. Is there any way to switch this off for a debugging session?&lt;/BLOCKQUOTE&gt;
Do you mean ARCHICAD is exiting without giving you a chance to debug at the point of failure? You can set the debugger to break at the point where an exception is thrown (and specify which types of exceptions you're interested in). Is that what you're after?</description>
      <pubDate>Tue, 22 Sep 2015 13:24:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Debug-exceptions/m-p/297137#M8415</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2015-09-22T13:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Debug exceptions</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Debug-exceptions/m-p/297138#M8416</link>
      <description>Yes that's the problem I'm having. It will jump to AC's handler, even if I bracket an error in a try/catch block.&lt;BR /&gt;
&lt;BR /&gt;
But you're right, I probably have to tweak my debug settings. I don't have them on "full" as there are a number of harmless first-chance exceptions thrown outside of my code.</description>
      <pubDate>Tue, 22 Sep 2015 19:36:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Debug-exceptions/m-p/297138#M8416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-22T19:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Debug exceptions</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Debug-exceptions/m-p/297139#M8417</link>
      <description>&lt;BLOCKQUOTE&gt;MarkHenryC wrote:&lt;BR /&gt;Yes that's the problem I'm having. It will jump to AC's handler, even if I bracket an error in a try/catch block.&lt;BR /&gt;
&lt;BR /&gt;
But you're right, I probably have to tweak my debug settings. I don't have them on "full" as there are a number of harmless first-chance exceptions thrown outside of my code.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
ARCHICAD does install a low level exception handler, you can't do much about that.&lt;BR /&gt;
&lt;BR /&gt;
Ralph's suggestion is the good one, just adjust your debugger to stop when an exception is thrown.&lt;BR /&gt;
&lt;BR /&gt;
Having a local try-catch block should work; so in your case I think you have a different kind of exception (a non-C++ one), like an access violation.&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
      <pubDate>Fri, 02 Oct 2015 07:51:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Debug-exceptions/m-p/297139#M8417</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2015-10-02T07:51:53Z</dc:date>
    </item>
  </channel>
</rss>

