<?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: Problem about GS::uchar_t in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-about-GS-uchar-t/m-p/90493#M7443</link>
    <description>&lt;BLOCKQUOTE&gt;Hemmachart wrote:&lt;BR /&gt;GS::ucscpy (chgParam.uStrValue, tmpUStr.ToUStr());&lt;BR /&gt;
    My ArchiCAD will be crash !&lt;/BLOCKQUOTE&gt;
'uStrValue' is a pointer in 'API_ChangeParamType'. You can't simply copy characters to the address it points to without allocating space for the string. You are probably writing to a spurious/random/null location, which explains the crash. Try setting 'uStrValue' to a pointer to the string already allocated in 'tmpUStr'.</description>
    <pubDate>Sat, 07 Jul 2007 23:33:37 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2007-07-07T23:33:37Z</dc:date>
    <item>
      <title>Problem about GS::uchar_t</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-about-GS-uchar-t/m-p/90492#M7442</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I try to use API Dev 11 to develop my Add-on. And I found that GSRoot Document (come with API Dev 11) is out-of-date. I can not find any method (fuction) to work with GS::uchar_t ( such as GS::ucscpy ...). So I must try some code in an example.&lt;BR /&gt;I can use some example-code to develop Add-on that can change 'realValue' parameter of my Object. But when I try to change 'uStrValue' parameter using code like ...&lt;BR /&gt;CHCopyC ("Dir", chgParam.name);&lt;BR /&gt;GS::UniString tmpUStr ("Left");&lt;BR /&gt;GS::ucscpy (chgParam.uStrValue, tmpUStr.ToUStr());&lt;BR /&gt;My ArchiCAD will be crash !&lt;BR /&gt;How can I solve this problem and how can I find document about GS::uchar_t ?&lt;BR /&gt;Thank you&lt;BR /&gt;Hemmachart R.&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Aug 2023 08:26:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-about-GS-uchar-t/m-p/90492#M7442</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-07T08:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem about GS::uchar_t</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-about-GS-uchar-t/m-p/90493#M7443</link>
      <description>&lt;BLOCKQUOTE&gt;Hemmachart wrote:&lt;BR /&gt;GS::ucscpy (chgParam.uStrValue, tmpUStr.ToUStr());&lt;BR /&gt;
    My ArchiCAD will be crash !&lt;/BLOCKQUOTE&gt;
'uStrValue' is a pointer in 'API_ChangeParamType'. You can't simply copy characters to the address it points to without allocating space for the string. You are probably writing to a spurious/random/null location, which explains the crash. Try setting 'uStrValue' to a pointer to the string already allocated in 'tmpUStr'.</description>
      <pubDate>Sat, 07 Jul 2007 23:33:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-about-GS-uchar-t/m-p/90493#M7443</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2007-07-07T23:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem about GS::uchar_t</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-about-GS-uchar-t/m-p/90494#M7444</link>
      <description>It's work !&lt;BR /&gt;
Thank you very much.&lt;BR /&gt;
 Hemmachr</description>
      <pubDate>Mon, 09 Jul 2007 02:59:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-about-GS-uchar-t/m-p/90494#M7444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-09T02:59:44Z</dc:date>
    </item>
  </channel>
</rss>

