<?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: Exception during IFC property hook execution Archicad 29 in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677573#M10575</link>
    <description>&lt;P&gt;I have tried again; did read the examples and documentation and wrote this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_0-1758618371231.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/92267i58BD50587AC720D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Emkave_0-1758618371231.png" alt="Emkave_0-1758618371231.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however it still causes Archicad to crash with the same exception when the execution of PropertyHook ends.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Sep 2025 14:12:26 GMT</pubDate>
    <dc:creator>Emkave</dc:creator>
    <dc:date>2025-09-23T14:12:26Z</dc:date>
    <item>
      <title>Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/676609#M10549</link>
      <description>&lt;P&gt;Hello guys. I was coding the hookers for Archicad 29 and something went wrong. I was following the examples in IFC_Test, and I wrote the code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_0-1757669104747.png" style="width: 799px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/91923i8911CBCEF00A6FF1/image-dimensions/799x361?v=v2" width="799" height="361" role="button" title="Emkave_0-1757669104747.png" alt="Emkave_0-1757669104747.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have also executed this code that gave no errors:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;IFCAPI::GetHookManager().RegisterPropertyHook(IFCHook::property_hook);&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;However, for some reason, after the ending of execution of property_hook(), I received this exception error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-09-12 105725.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/91924i9040F0800EE1C615/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-09-12 105725.png" alt="Screenshot 2025-09-12 105725.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want also to point out that the ifc values were creating fine, without any errors. I was checking it a lot of times through the debugger.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have someone dealt with this issue before? I would be glad if someone could point me to my mistake. Thank you in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 13:33:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/676609#M10549</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-09-15T13:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/676827#M10557</link>
      <description>&lt;P&gt;Also I noticed that it is trying to load up IFCInOutAPI.pdb from somewhere. I went to check out in the devkit for AC29 and it does not exist there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_0-1757945610765.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/92000iAE48B1A33C567353/image-size/large?v=v2&amp;amp;px=999" role="button" title="Emkave_0-1757945610765.png" alt="Emkave_0-1757945610765.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried to search for IFCInOutAPI.dll, but it does not exist either&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_1-1757945643460.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/92001i999ACF5436217497/image-size/large?v=v2&amp;amp;px=999" role="button" title="Emkave_1-1757945643460.png" alt="Emkave_1-1757945643460.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 10:28:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/676827#M10557</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-09-16T10:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/676913#M10560</link>
      <description>&lt;P&gt;And here is the debug message:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Exception code: C0000005 ACCESS_VIOLATION reading location: 0000000000000000
Fault address: 00007FF9CC1969FE 01:000059FE IFCInOutAPI.dll
TOS address: 0000024C56406448 00:00000000

Registers:
RAX:00000000000014C8
RBX:0000000000000000
RCX:903BE332AC2C0000
RDX:00007FF9B5F303C0
RSI:000000C6706FC930
RDI:0000024C98F82280
R8: 7FFFFFFFFFFFFFFC
R9: 000000C6704BA000
R10:0000024C5FA70000
R11:000000C6706FAFE0
R12:000000C6706FD9D0
R13:0000000000000000
R14:0000000000000000
R15:000000C6706FC8B8
CS:RIP:0033:00007FF9CC1969FE
SS:RSP:002B:000000C6706FC820 RBP:000000C6706FC8F0
DS:002B ES:002B FS:0053 GS:002B
Flags:00010346

Floating point Registers:
CTRL:027F STAT:0000 TAGS:0000
CS:RIP:0000:00000000E0A49EC1
DS:EDO:0000:0000000000004978
MxCsr:00001FA0

XMM0 = 00000000000000000000000000000000 === +0.000000000000e+00 +0.000000000000e+00 === +0.000000e+00 +0.000000e+00 +0.000000e+00 +0.000000e+00
XMM1 = 00000000000000000000000000000000 === +0.000000000000e+00 +0.000000000000e+00 === +0.000000e+00 +0.000000e+00 +0.000000e+00 +0.000000e+00
XMM2 = 0000000000000000000000003F400000 === +0.000000000000e+00 +5.242821631975e-315 === +7.500000e-01 +0.000000e+00 +0.000000e+00 +0.000000e+00
XMM3 = 00000000000000000000000040000000 === +0.000000000000e+00 +5.304989477413e-315 === +2.000000e+00 +0.000000e+00 +0.000000e+00 +0.000000e+00
XMM4 = 00000000000000000000000000000000 === +0.000000000000e+00 +0.000000000000e+00 === +0.000000e+00 +0.000000e+00 +0.000000e+00 +0.000000e+00
XMM5 = 000000003A495041000000007373616C === +3.637369144105e+233 +1.254570642471e+16 === +1.928259e+31 +1.982856e+02 +7.679500e-04 +2.937459e+29
XMM6 = 00000000000000000000000047AE147B === +0.000000000000e+00 +2.000000000000e-02 === +8.912896e+04 +1.160000e+00 +0.000000e+00 +0.000000e+00
XMM7 = 00000000000000000000000000000000 === +0.000000000000e+00 +0.000000000000e+00 === +0.000000e+00 +0.000000e+00 +0.000000e+00 +0.000000e+00

XMM8 = 00000000000000000000000000000000 === +0.000000000000e+00 +0.000000000000e+00 === +0.000000e+00 +0.000000e+00 +0.000000e+00 +0.000000e+00
XMM9 = 00000000000000000000000000000000 === +0.000000000000e+00 +0.000000000000e+00 === +0.000000e+00 +0.000000e+00 +0.000000e+00 +0.000000e+00
XMM10 = 00000000000000000000000000000000 === +0.000000000000e+00 +0.000000000000e+00 === +0.000000e+00 +0.000000e+00 +0.000000e+00 +0.000000e+00
XMM11 = 00000000000000000000000000000000 === +0.000000000000e+00 +0.000000000000e+00 === +0.000000e+00 +0.000000e+00 +0.000000e+00 +0.000000e+00
XMM12 = 00000000000000000000000000000000 === +0.000000000000e+00 +0.000000000000e+00 === +0.000000e+00 +0.000000e+00 +0.000000e+00 +0.000000e+00
XMM13 = 00000000000000000000000000000000 === +0.000000000000e+00 +0.000000000000e+00 === +0.000000e+00 +0.000000e+00 +0.000000e+00 +0.000000e+00
XMM14 = 00000000000000000000000000000000 === +0.000000000000e+00 +0.000000000000e+00 === +0.000000e+00 +0.000000e+00 +0.000000e+00 +0.000000e+00
XMM15 = 00000000000000000000000000000000 === +0.000000000000e+00 +0.000000000000e+00 === +0.000000e+00 +0.000000e+00 +0.000000e+00 +0.000000e+00




Address space statistics:

Available free memory: 130999.50 GB
The number of free memory blocks: 1478
The average size of free memory blocks: 88.63 GB
The number of free memory blocks &amp;lt; 10 kbyte: 64 (416.00 KB)
The number of free memory blocks &amp;lt; 100 kbyte: 1151 (56460.00 KB)
The number of free memory blocks &amp;lt; 1 Mbyte: 90 (41.87 MB)
The number of free memory blocks &amp;lt; 10 Mbyte: 103 (395.59 MB)
The number of free memory blocks &amp;lt; 100 Mbyte: 48 (1404.78 MB)
The number of free memory blocks &amp;lt; 1 Gbyte: 10 (2.57 GB)
The number of free memory blocks &amp;gt; 1 Gbyte: 12 (130995.07 GB)
The biggest free block:
0x00003A4C00000000 46928.00 GB free 0x0000000000000000 NOACCESS&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Sep 2025 10:29:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/676913#M10560</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-09-16T10:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/676934#M10562</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_0-1758022644381.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/92030iDB2B2A7529CE1998/image-size/large?v=v2&amp;amp;px=999" role="button" title="Emkave_0-1758022644381.png" alt="Emkave_0-1758022644381.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried this test code example. But it also gave the same exception error.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 20:19:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/676934#M10562</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-09-16T20:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677381#M10567</link>
      <description>&lt;P&gt;Please someone expalin or share the way or explain why I do receive the exception! I will be very glad!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Sep 2025 19:04:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677381#M10567</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-09-21T19:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677402#M10568</link>
      <description>&lt;P&gt;Hi, please let me confirm what problem you're facing, did you mean you meet the error even using API29 Examples code? I noticed there are similar code like&amp;nbsp;&lt;SPAN&gt;AddProperty() in IFCHook_Test.cpp.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 02:18:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677402#M10568</guid>
      <dc:creator>Hiromichi Shinkawa</dc:creator>
      <dc:date>2025-09-22T02:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677443#M10572</link>
      <description>&lt;P&gt;Hello. Thank you for the reply. The issue I face is when the PropertyHook function finishes its execution after I had put values into the property vector.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_0-1758533493681.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/92208i3297C22C38E5F808/image-size/large?v=v2&amp;amp;px=999" role="button" title="Emkave_0-1758533493681.png" alt="Emkave_0-1758533493681.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this screenshot I am emplacing the test value. Then the execution line goes out of this function and Visual Studio complains about the exception:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_1-1758533546714.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/92209i031B6EDAE1518064/image-size/large?v=v2&amp;amp;px=999" role="button" title="Emkave_1-1758533546714.png" alt="Emkave_1-1758533546714.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect that I have emplaced the property incorrectly, however I am sure I correctly understood the way it supposed to be according to the examples from Graphisoft.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 14:12:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677443#M10572</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-09-23T14:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677573#M10575</link>
      <description>&lt;P&gt;I have tried again; did read the examples and documentation and wrote this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_0-1758618371231.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/92267i58BD50587AC720D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Emkave_0-1758618371231.png" alt="Emkave_0-1758618371231.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however it still causes Archicad to crash with the same exception when the execution of PropertyHook ends.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 14:12:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677573#M10575</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-09-23T14:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677664#M10577</link>
      <description>&lt;P&gt;Hi, could you reproduced the same crash using the example code &lt;SPAN&gt;AddProperty() in IFCHook_Test.cpp&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 01:46:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677664#M10577</guid>
      <dc:creator>Hiromichi Shinkawa</dc:creator>
      <dc:date>2025-09-24T01:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677728#M10578</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_0-1758706425205.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/92318i477A8245446ED772/image-size/large?v=v2&amp;amp;px=999" role="button" title="Emkave_0-1758706425205.png" alt="Emkave_0-1758706425205.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes. Crashed again when I tried to use AddProperty from IFCHook_Test.cpp.&lt;BR /&gt;&lt;BR /&gt;I have literally copied and pasted their functionality.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 14:14:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677728#M10578</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-09-24T14:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677877#M10581</link>
      <description>&lt;P&gt;It's hard to say without running your exact example myself. But I've successfully compiled and run the IFCHOOK_Test example without crashes.&lt;BR /&gt;&lt;BR /&gt;My first guess is, that you need to make your hook a static function because the function needs to stay available. Something like:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;static void IFCHook::PropertyHook1(const ......) {
...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if this solves the issue.&lt;/P&gt;
&lt;P&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 15:09:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677877#M10581</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2025-09-25T15:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677882#M10582</link>
      <description>&lt;P&gt;Having the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;template&amp;lt;typename TValue&amp;gt;
static void AddProperty(std::vector&amp;lt;IFCAPI::Property&amp;gt;&amp;amp; properties, const GS::UniString&amp;amp; setName, const GS::UniString&amp;amp; name, const GS::UniString&amp;amp; valueType, const TValue&amp;amp; value)
{
	auto apiValue = IFCAPI::GetPropertyBuilder().CreateValue(valueType, value);
	if (apiValue.IsOk()) {
		auto apiProperty = IFCAPI::GetPropertyBuilder().CreatePropertySingleValue(setName, name, *apiValue);
		if (apiProperty.IsOk())
			properties.emplace_back(*apiProperty);
	}
}


static void AddTextProperty(std::vector&amp;lt;IFCAPI::Property&amp;gt;&amp;amp; properties, const GS::UniString&amp;amp; setName, const GS::UniString&amp;amp; name, const GS::UniString&amp;amp; valueType, const GS::UniString&amp;amp; value)
{
	AddProperty(properties, setName, name, valueType, value);
}


void IFCHook::PropertyHook1(const IFCAPI::ObjectID&amp;amp; objectID, std::vector&amp;lt;IFCAPI::Property&amp;gt;&amp;amp; properties) noexcept {


	AddTextProperty(properties, "Sample Property Set", "Sample Property", "IfcLabel", "Hello from IFC Hook!");
	AddProperty(properties, "Sample Property Set", "Sample Integer Property", "IfcInteger", (Int64)12345);
}



void IFCHook::Enable() noexcept {
	auto res = IFCAPI::GetHookManager().RegisterPropertyHook(IFCHook::PropertyHook1);

	if (!res.IsOk()) {
		throw "Unable to register property hook.";
	}
}




&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...still causes a crash. I just place a chair, trying to check out its properties and it crashes.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;P.S. IFCHook::PropertyHook1 is already static as it is declared in such a way in IFCHook class.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 15:50:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/677882#M10582</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-09-25T15:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/678002#M10585</link>
      <description>&lt;P&gt;Hm... weird! Can you show the call stack when the crash happens?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2025 14:57:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/678002#M10585</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2025-09-26T14:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/678015#M10586</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-09-26 181441.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/92414iB158B3478F45B2B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-09-26 181441.png" alt="Screenshot 2025-09-26 181441.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt; This is where it jumps after finishing the execution of IFCHook::PropertyHook1()&lt;BR /&gt;&lt;BR /&gt;And this is when it is 1 Step Over behind the crash&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_0-1758904466841.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/92416i49F2ADE975366D35/image-size/large?v=v2&amp;amp;px=999" role="button" title="Emkave_0-1758904466841.png" alt="Emkave_0-1758904466841.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Sep 2025 19:12:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/678015#M10586</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-09-27T19:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/678145#M10587</link>
      <description>&lt;P&gt;My suspection is that possibly the value that I put into the vector gets disappeared from the std::vector. Hence I get the crash for reading the invalid address.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 08:35:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/678145#M10587</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-09-29T08:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/678157#M10588</link>
      <description>&lt;P&gt;Btw. When I copied the entire test code and tried to test it out, it would also crash Archicad for read access violation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_0-1759135914597.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/92450iA801F6607A0CC368/image-size/large?v=v2&amp;amp;px=999" role="button" title="Emkave_0-1759135914597.png" alt="Emkave_0-1759135914597.png" /&gt;&lt;/span&gt;&lt;BR /&gt;It happens in this loop, on 5th iteration:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;static void PropertyHookCommon(const IFCAPI::ObjectID&amp;amp; objectID, std::vector&amp;lt;IFCAPI::Property&amp;gt;&amp;amp; properties, const GS::UniString namePostfix)
{
	API_Element apiElement{};
	GS::UniString infoString;
	if (GetAPIElement(objectID, apiElement, &amp;amp;infoString)) {
		// create scheme property after every infoString character
		for (auto index : GS::InRange((UIndex)0, infoString.GetLength())) {
			if (infoString[index].IsWhiteSpace())
				continue;

			GS::UniString character = infoString.GetSubstring(index, 1);

			GS::UniString propertySetName = "PSet_InfoString";
			GS::UniString propertyName = character;

			propertySetName.Append(namePostfix);
			propertyName.Append(namePostfix);

			AddTextProperty(properties, propertySetName, propertyName, "IfcLabel", character);
		}
	}
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 18:37:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/678157#M10588</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-09-30T18:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/678269#M10592</link>
      <description>&lt;P&gt;OK, I just saw a possible solution. Are you making a Debug build? Try compiling it as a Release build.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Somebody else seemed to have a very similar problem in AC29 TP and this was their solution. (&lt;A href="https://community.graphisoft.com/t5/Graphisoft-Technology-Preview/Crashes-when-invoking-property-hook-Error-2147483639/m-p/678075#M562" target="_blank"&gt;https://community.graphisoft.com/t5/Graphisoft-Technology-Preview/Crashes-when-invoking-property-hook-Error-2147483639/m-p/678075#M562&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This relates to an issue I had a while back with Debug builds. Check this post to see how you can adapt your Debug build once you've confirmed that it was the issue by trying the Release build:&amp;nbsp;&lt;A href="https://community.graphisoft.com/t5/Archicad-C-API/Crash-for-GetOrganizationIds-in-DEBUG-builds-linked-to-ACAP/td-p/646824" target="_blank"&gt;https://community.graphisoft.com/t5/Archicad-C-API/Crash-for-GetOrganizationIds-in-DEBUG-builds-linked-to-ACAP/td-p/646824&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 06:20:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/678269#M10592</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2025-09-30T06:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/678325#M10596</link>
      <description>&lt;P&gt;Hello. Yes, it works now with Release build. Thank you a lot! Now I really wonder why my issue appeared in the first place...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will try fix the Debug now. Thank you and everybody else here a lot!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 11:41:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/678325#M10596</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-09-30T11:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Exception during IFC property hook execution Archicad 29</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/683637#M10696</link>
      <description>&lt;P&gt;Maybe it is related to&amp;nbsp;&lt;A href="https://community.graphisoft.com/t5/Developer-Insights/Possible-cause-of-random-crashes-on-Windows/ba-p/678769" target="_blank"&gt;https://community.graphisoft.com/t5/Developer-Insights/Possible-cause-of-random-crashes-on-Windows/ba-p/678769&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best, Akos&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2025 10:22:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Exception-during-IFC-property-hook-execution-Archicad-29/m-p/683637#M10696</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2025-11-13T10:22:26Z</dc:date>
    </item>
  </channel>
</rss>

