<?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: I have a problem when I release 'ExternalGlobalId' in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/I-have-a-problem-when-I-release-ExternalGlobalId/m-p/663024#M10364</link>
    <description>&lt;P&gt;I had a similar issue a while ago. You can change your Debug build setup a little bit to get rid of the issue in Debug builds.&lt;BR /&gt;Graphisoft now discourages using ACAP_STATD.lib. Instead you should always link to ACAP_STAT.lib also in Debug build and set the ITERATOR_DEBUG_LEVEL=0. After changing these two things, I didn't have any issues anymore in debug mode and attaching a debugger works as well still.&lt;BR /&gt;&lt;BR /&gt;More details here:&amp;nbsp;&lt;A href="https://community.graphisoft.com/t5/Archicad-C-API/Crash-for-GetOrganizationIds-in-DEBUG-builds-linked-to-ACAP/m-p/646853/highlight/true#M10095" target="_blank"&gt;https://community.graphisoft.com/t5/Archicad-C-API/Crash-for-GetOrganizationIds-in-DEBUG-builds-linked-to-ACAP/m-p/646853/highlight/true#M10095&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 May 2025 14:21:21 GMT</pubDate>
    <dc:creator>BerndSchwarzenbacher</dc:creator>
    <dc:date>2025-05-20T14:21:21Z</dc:date>
    <item>
      <title>I have a problem when I release 'ExternalGlobalId'</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/I-have-a-problem-when-I-release-ExternalGlobalId/m-p/658915#M10259</link>
      <description>&lt;P&gt;I have some problem to get 'ExternalGlobalId' and 'GlobalId' in ArchiCAD28.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get 'ExternalGlobalId', if there 'ExternalGlobalId' is exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And, if 'ExternalGlobalId' is not exist, I want to get 'GlobalId'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An error occurs when exiting the for loop.&lt;/P&gt;&lt;P&gt;Occurs only when 'ExternalGlobalId' is not present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In 'Microsoft Visual Studio\2019\Professional\VC\ToolsMSVC\14.29.30133\include\xmemory'.&lt;/P&gt;&lt;P&gt;0xC0000005: &lt;SPAN&gt;Access violation reading location 0xFFFFFFFFFFFFFFFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ExternalGlobalId_stack.png" style="width: 563px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/85736i8CA27C41CAC9E8C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="ExternalGlobalId_stack.png" alt="ExternalGlobalId_stack.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;for (int i = 0; i &amp;lt; selList.GetSize(); i++)
{
	UniString ifcType = L"", ifcIdStr = L"";

	API_Elem_Head elemHead;
	elemHead.guid = selList[i].GetGuid();
	ACAPI_Element_GetHeader(&amp;amp;elemHead);
	auto objectID = IFCAPI::GetObjectAccessor().CreateElementObjectID(elemHead);
	auto ifcTypeResult = IFCAPI::GetObjectAccessor().GetIFCType(objectID.Unwrap());
	if (ifcTypeResult.IsOk())
		ifcType = ifcTypeResult.Unwrap();

	auto externalGlobalId(IFCAPI::GetObjectAccessor().GetExternalGlobalId(objectID.Unwrap()));
	if (externalGlobalId.IsOk())
	{
		ifcIdStr = externalGlobalId.Unwrap();
	}
	else
	{
		auto globalId = IFCAPI::GetObjectAccessor().GetGlobalId(objectID.Unwrap());
		if (globalId.IsOk())
			ifcIdStr = globalId.Unwrap();
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 08:17:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/I-have-a-problem-when-I-release-ExternalGlobalId/m-p/658915#M10259</guid>
      <dc:creator>YONGWOO KIM</dc:creator>
      <dc:date>2025-04-10T08:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem when I release 'ExternalGlobalId'</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/I-have-a-problem-when-I-release-ExternalGlobalId/m-p/662568#M10347</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this occur with a Debug, or Release/RelWithDebInfo Add-On build?&lt;BR /&gt;I've seen stg. similar, when using a Debug AddOn with an Archicad release, while it worked with the Rel-Rel combination.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 06:40:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/I-have-a-problem-when-I-release-ExternalGlobalId/m-p/662568#M10347</guid>
      <dc:creator>Adam Toth</dc:creator>
      <dc:date>2025-05-15T06:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem when I release 'ExternalGlobalId'</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/I-have-a-problem-when-I-release-ExternalGlobalId/m-p/662808#M10357</link>
      <description>&lt;P&gt;It solved with Release.&lt;/P&gt;&lt;P&gt;However, is there any plan to fix it in the future?&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 06:29:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/I-have-a-problem-when-I-release-ExternalGlobalId/m-p/662808#M10357</guid>
      <dc:creator>YONGWOO KIM</dc:creator>
      <dc:date>2025-05-19T06:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem when I release 'ExternalGlobalId'</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/I-have-a-problem-when-I-release-ExternalGlobalId/m-p/663024#M10364</link>
      <description>&lt;P&gt;I had a similar issue a while ago. You can change your Debug build setup a little bit to get rid of the issue in Debug builds.&lt;BR /&gt;Graphisoft now discourages using ACAP_STATD.lib. Instead you should always link to ACAP_STAT.lib also in Debug build and set the ITERATOR_DEBUG_LEVEL=0. After changing these two things, I didn't have any issues anymore in debug mode and attaching a debugger works as well still.&lt;BR /&gt;&lt;BR /&gt;More details here:&amp;nbsp;&lt;A href="https://community.graphisoft.com/t5/Archicad-C-API/Crash-for-GetOrganizationIds-in-DEBUG-builds-linked-to-ACAP/m-p/646853/highlight/true#M10095" target="_blank"&gt;https://community.graphisoft.com/t5/Archicad-C-API/Crash-for-GetOrganizationIds-in-DEBUG-builds-linked-to-ACAP/m-p/646853/highlight/true#M10095&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 14:21:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/I-have-a-problem-when-I-release-ExternalGlobalId/m-p/663024#M10364</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2025-05-20T14:21:21Z</dc:date>
    </item>
  </channel>
</rss>

