<?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: CRASH in AUtoCAD using ACDbGetGripOverrule::getGripPoints and the same is working fine with BricsCAD in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/crash-in-autocad-using-acdbgetgripoverrule-getgrippoints-and-the/m-p/10196550#M82028</link>
    <description>&lt;P&gt;Is there any solution to prevent CRASH when using the below function? like making somekind of prechecks to avoid duplicate entries.&lt;/P&gt;&lt;P&gt;(or) Appreciate if there are any suggestions how we can catch the exception gracefully instead of an abrupt CRASH using AutoCAD functions like this.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AcDbGripOverrule::getGripPoints()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Mar 2021 16:56:31 GMT</pubDate>
    <dc:creator>sarada.kantheti</dc:creator>
    <dc:date>2021-03-29T16:56:31Z</dc:date>
    <item>
      <title>CRASH in AUtoCAD using ACDbGetGripOverrule::getGripPoints and the same is working fine with BricsCAD</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/crash-in-autocad-using-acdbgetgripoverrule-getgrippoints-and-the/m-p/10178324#M82026</link>
      <description>&lt;P class="htmlformat"&gt;Crash occurred when our ADD on products (like Plant and Structure) are loaded and changing the layer info of any selected non-plant objects(SolidSteelComponents).&lt;/P&gt;&lt;P class="htmlformat"&gt;An exception is thrown&lt;BR /&gt;System.ArgumentException: An item with the same key has already been added.&lt;BR /&gt;in Acad::ErrorStatus SolidSteelComponentGripOverrule::getGripPoints() at&lt;BR /&gt;return AcDbGripOverrule::getGripPoints(pSubject, grips, curViewUnitSize, gripSize, curViewDir, bitflags);&lt;BR /&gt;The Try-Catch does not help and a Fatal Error occurs&lt;BR /&gt;From dump:&lt;BR /&gt;Clr Data:&lt;BR /&gt;-----CLR Version Info:&lt;BR /&gt;….&lt;BR /&gt;….&lt;BR /&gt;************** Exception Text **************&lt;BR /&gt;System.ArgumentException: An item with the same key has already been added.&lt;BR /&gt;&amp;nbsp; at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)&lt;BR /&gt;&amp;nbsp; at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)&lt;BR /&gt;&amp;nbsp; at AcMgGripOverrule.getGripPoints(AcMgGripOverrule* , AcDbEntity* pSubject, AcArray&amp;lt;AcDbGripData \*\,AcArrayMemCopyReallocator&amp;lt;AcDbGripData \*&amp;gt; &amp;gt;* grips, Double curViewUnitSize, Int32 gripSize, AcGeVector3d* curViewDir, Int32 bitflags)&lt;BR /&gt;&amp;nbsp; at AcEdLivePreview.endPreview(AcEdLivePreview* )&lt;BR /&gt;&amp;nbsp; at Autodesk.AutoCAD.EditorInput.LivePreview.EndPreview()&lt;BR /&gt;&amp;nbsp; at Autodesk.AutoCAD.LivePreview.PreviewContextManager.AbortPreview(Boolean bCancle)&lt;BR /&gt;&amp;nbsp; at Autodesk.AutoCAD.LivePreview.PreviewMeasuringTimer`1.AcadApplication_Idle(Object sender, EventArgs e)&lt;BR /&gt;&amp;nbsp; at System.EventHandler.Invoke(Object sender, EventArgs e)&lt;BR /&gt;&amp;nbsp; at Autodesk.AutoCAD.ApplicationServices.Core.Application.raise_Idle(Object value0, EventArgs value1)&lt;BR /&gt;&amp;nbsp; at Autodesk.AutoCAD.ApplicationServices.Core.Application.OnIdle()\*\,AcArrayMemCopyReallocator&amp;lt;AcDbGripData \*&amp;gt; &amp;gt;* grips, Double curViewUnitSize, Int32 gripSize, AcGeVector3d* curViewDir, Int32 bitflags)&lt;/P&gt;&lt;P class="htmlformat"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="htmlformat"&gt;MyFunction is as bleow and it crashed at "return" line:&lt;/P&gt;&lt;P class="htmlformat"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="htmlformat"&gt;Acad::ErrorStatus SolidSteelComponentGripOverrule::getGripPoints(const AcDbEntity* pSubject,&lt;BR /&gt;AcDbGripDataPtrArray&amp;amp; grips,&lt;BR /&gt;const double curViewUnitSize,&lt;BR /&gt;const int gripSize,&lt;BR /&gt;const AcGeVector3d&amp;amp; curViewDir,&lt;BR /&gt;const int bitflags)&lt;BR /&gt;{&lt;BR /&gt;......&lt;BR /&gt;......&lt;BR /&gt;......&lt;BR /&gt;.......&lt;BR /&gt;return AcDbGripOverrule::getGripPoints(pSubject, grips, curViewUnitSize, gripSize, curViewDir, bitflags);&lt;BR /&gt;}&lt;/P&gt;&lt;P class="htmlformat"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 07:29:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/crash-in-autocad-using-acdbgetgripoverrule-getgrippoints-and-the/m-p/10178324#M82026</guid>
      <dc:creator>sarada.kantheti</dc:creator>
      <dc:date>2021-03-23T07:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: CRASH in AUtoCAD using ACDbGetGripOverrule::getGripPoints and the same is working fine with BricsCAD</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/crash-in-autocad-using-acdbgetgripoverrule-getgrippoints-and-the/m-p/10179304#M82027</link>
      <description>&amp;gt;&amp;gt;&amp;gt;... when our ADD on products (like Plant and Structure) are loaded ...&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;So without your add-ons there are no problems? Who is the vendor that created the add-ons?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;...working fine with BricsCAD...&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;What does that have to do with AutoCAD? They are not the same software or the same vendor.</description>
      <pubDate>Tue, 23 Mar 2021 13:20:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/crash-in-autocad-using-acdbgetgripoverrule-getgrippoints-and-the/m-p/10179304#M82027</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2021-03-23T13:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: CRASH in AUtoCAD using ACDbGetGripOverrule::getGripPoints and the same is working fine with BricsCAD</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/crash-in-autocad-using-acdbgetgripoverrule-getgrippoints-and-the/m-p/10196550#M82028</link>
      <description>&lt;P&gt;Is there any solution to prevent CRASH when using the below function? like making somekind of prechecks to avoid duplicate entries.&lt;/P&gt;&lt;P&gt;(or) Appreciate if there are any suggestions how we can catch the exception gracefully instead of an abrupt CRASH using AutoCAD functions like this.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AcDbGripOverrule::getGripPoints()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 16:56:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/crash-in-autocad-using-acdbgetgripoverrule-getgrippoints-and-the/m-p/10196550#M82028</guid>
      <dc:creator>sarada.kantheti</dc:creator>
      <dc:date>2021-03-29T16:56:31Z</dc:date>
    </item>
  </channel>
</rss>

