<?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: Access Violation inside of REGEN3 in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation-inside-of-regen3/m-p/9747546#M4046</link>
    <description>&lt;P&gt;Check whether you close all objects that you opened within your overridden methods.&lt;/P&gt;
&lt;P&gt;Avoid to open any objects &lt;FONT face="courier new,courier"&gt;kForWrite&lt;/FONT&gt; within your implementation of&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;FONT face="courier new,courier"&gt;AcDb::Visibility AcDbVisibilityOverrule::visibility(const AcDbEntity* pSubject)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also I would check whether your&amp;nbsp;&lt;FONT face="courier new,courier"&gt;AcDbVisibilityOverrule&lt;/FONT&gt; causes the problem by simply returning the defaults:&lt;/P&gt;
&lt;DIV id="areascroll" class="Element720" style="overflow: auto; height: 1264px; width: 1174px; top: 0px; padding-right: 20px;"&gt;
&lt;DIV class="Element721"&gt;
&lt;DIV class="Element58"&gt;
&lt;DIV class="Element11"&gt;
&lt;DIV class="Element10"&gt;&lt;LI-CODE lang="cpp"&gt;AcDb::Visibility MyVisibilityOverride::setVisibility(
    AcDbEntity *pSubject, 
    AcDb::Visibility newVal, 
    Adesk::Boolean doSubents
) {
   return AcDbEntity::subSetVisibility(pSubject, newVal, doSubents);
   // your Code
}

AcDb::Visibility MyVisibilityOverride::visibility() {
    return AcDbEntity::subVisibility();
    /// your code
}&lt;/LI-CODE&gt;
&lt;P&gt;If you still get crashes you have to search the reason elsewhere.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 15 Sep 2020 09:39:18 GMT</pubDate>
    <dc:creator>tbrammer</dc:creator>
    <dc:date>2020-09-15T09:39:18Z</dc:date>
    <item>
      <title>Access Violation inside of REGEN3</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation-inside-of-regen3/m-p/9742008#M4045</link>
      <description>&lt;P&gt;Hallo Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I sometimes get an Access Violation inside of REGEN3. I call it after AcDbVisibilityOverrule has done its work and the display needs an refresh. It doesn't matter if I do it per acedCommandS from inside a command or by hand. It only happens from time to time. What could be the reason for such an access violation? I'm not sure where to start. Any hints? It does not help to replace REGEN3 with native C++ functions. If I do it crashes inside of acedRedraw. There was a previous call to REGEN which always runs fine.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 11:10:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation-inside-of-regen3/m-p/9742008#M4045</guid>
      <dc:creator>fehrsZBFB9</dc:creator>
      <dc:date>2020-09-11T11:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Access Violation inside of REGEN3</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation-inside-of-regen3/m-p/9747546#M4046</link>
      <description>&lt;P&gt;Check whether you close all objects that you opened within your overridden methods.&lt;/P&gt;
&lt;P&gt;Avoid to open any objects &lt;FONT face="courier new,courier"&gt;kForWrite&lt;/FONT&gt; within your implementation of&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;FONT face="courier new,courier"&gt;AcDb::Visibility AcDbVisibilityOverrule::visibility(const AcDbEntity* pSubject)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also I would check whether your&amp;nbsp;&lt;FONT face="courier new,courier"&gt;AcDbVisibilityOverrule&lt;/FONT&gt; causes the problem by simply returning the defaults:&lt;/P&gt;
&lt;DIV id="areascroll" class="Element720" style="overflow: auto; height: 1264px; width: 1174px; top: 0px; padding-right: 20px;"&gt;
&lt;DIV class="Element721"&gt;
&lt;DIV class="Element58"&gt;
&lt;DIV class="Element11"&gt;
&lt;DIV class="Element10"&gt;&lt;LI-CODE lang="cpp"&gt;AcDb::Visibility MyVisibilityOverride::setVisibility(
    AcDbEntity *pSubject, 
    AcDb::Visibility newVal, 
    Adesk::Boolean doSubents
) {
   return AcDbEntity::subSetVisibility(pSubject, newVal, doSubents);
   // your Code
}

AcDb::Visibility MyVisibilityOverride::visibility() {
    return AcDbEntity::subVisibility();
    /// your code
}&lt;/LI-CODE&gt;
&lt;P&gt;If you still get crashes you have to search the reason elsewhere.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Sep 2020 09:39:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation-inside-of-regen3/m-p/9747546#M4046</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2020-09-15T09:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Access Violation inside of REGEN3</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation-inside-of-regen3/m-p/9747919#M4047</link>
      <description>&lt;P&gt;Maybe this crash has nothing to do with my code. It only happens with Advance Steel. Neither with pure AutoCAD nor with Architecture. Thanks anyway.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 12:24:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation-inside-of-regen3/m-p/9747919#M4047</guid>
      <dc:creator>fehrsZBFB9</dc:creator>
      <dc:date>2020-09-15T12:24:22Z</dc:date>
    </item>
  </channel>
</rss>

