<?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 IAPIToolUIData::SetUserData in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/IAPIToolUIData-SetUserData/m-p/101296#M8065</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;May be anybody knows details about following.&lt;BR /&gt;&lt;BR /&gt;For the reference: &lt;BR /&gt;TestSettingsPageObserver::SetUserDataToDefault function in Panels.cpp of the Panel_Test example.&lt;BR /&gt;&lt;BR /&gt;userData.dataHdl handle is not released ( BMKillHandle ) after call of SetUserData.&lt;BR /&gt;&lt;BR /&gt;Is it a bug ( and memory leak ) in this example or the handle really is not required to be released in this case ?&lt;/DIV&gt;</description>
    <pubDate>Mon, 07 Aug 2023 10:02:21 GMT</pubDate>
    <dc:creator>Oleg</dc:creator>
    <dc:date>2023-08-07T10:02:21Z</dc:date>
    <item>
      <title>IAPIToolUIData::SetUserData</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/IAPIToolUIData-SetUserData/m-p/101296#M8065</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;May be anybody knows details about following.&lt;BR /&gt;&lt;BR /&gt;For the reference: &lt;BR /&gt;TestSettingsPageObserver::SetUserDataToDefault function in Panels.cpp of the Panel_Test example.&lt;BR /&gt;&lt;BR /&gt;userData.dataHdl handle is not released ( BMKillHandle ) after call of SetUserData.&lt;BR /&gt;&lt;BR /&gt;Is it a bug ( and memory leak ) in this example or the handle really is not required to be released in this case ?&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Aug 2023 10:02:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/IAPIToolUIData-SetUserData/m-p/101296#M8065</guid>
      <dc:creator>Oleg</dc:creator>
      <dc:date>2023-08-07T10:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: IAPIToolUIData::SetUserData</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/IAPIToolUIData-SetUserData/m-p/101297#M8066</link>
      <description>You're right Oleg, that's a bug. &lt;BR /&gt;
 &lt;BR /&gt;
The last lines of that method should look like this: 
&lt;PRE&gt; 
	tabPage-&amp;gt;uiData-&amp;gt;SetUserData (&amp;amp;userData); 
	BMKillHandle (&amp;amp;userData.dataHdl); 
&lt;/PRE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
It will be corrected in the next DevKit. &lt;BR /&gt;
 &lt;BR /&gt;
Thanks: &lt;BR /&gt;
             Andras.</description>
      <pubDate>Wed, 15 Jun 2005 15:44:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/IAPIToolUIData-SetUserData/m-p/101297#M8066</guid>
      <dc:creator>Andras Babos</dc:creator>
      <dc:date>2005-06-15T15:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: IAPIToolUIData::SetUserData</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/IAPIToolUIData-SetUserData/m-p/101298#M8067</link>
      <description>&lt;BLOCKQUOTE&gt;Andras wrote:&lt;BR /&gt;You're right Oleg, that's a bug. &lt;BR /&gt;
 &lt;BR /&gt;
The last lines of that method should look like this: 
&lt;PRE&gt; 
	tabPage-&amp;gt;uiData-&amp;gt;SetUserData (&amp;amp;userData); 
	BMKillHandle (&amp;amp;userData.dataHdl); 
&lt;/PRE&gt; 
&lt;/BLOCKQUOTE&gt;

Thank you Andras. You have confirmed my guesses. Actually I used BMKillHandle in my code, but asked as I had some doubts.</description>
      <pubDate>Wed, 15 Jun 2005 16:21:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/IAPIToolUIData-SetUserData/m-p/101298#M8067</guid>
      <dc:creator>Oleg</dc:creator>
      <dc:date>2005-06-15T16:21:44Z</dc:date>
    </item>
  </channel>
</rss>

