<?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 PropertyDescriptorCollection.find causing fatal crash in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/propertydescriptorcollection-find-causing-fatal-crash/m-p/10937219#M13708</link>
    <description>&lt;P&gt;We have a long-running process in 2019 that we need AutoCAD to report messages to the console window.&amp;nbsp; We are doing this by executing a Windows Forms DoEvents() to get AutoCAD to refresh the message in the console.&amp;nbsp; However, this will occasionally cause a fatal crash with an exception "object reference not set to the instance of an object" with this stack trace:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;System.NullReferenceException: Object reference not set to an instance of an object.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;at Autodesk.AutoCAD.Windows.Data.DynamicObjectBase.PropertyDescriptorCollection.Find(String name, Boolean ignoreCase)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;at Autodesk.AutoCAD.Ribbon.LayerComboText.LayerComboText_Loaded(Object sender, RoutedEventArgs e)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Windows .NET messages ...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Is there a better way to get output messages while a process is running?&amp;nbsp; Any ideas why this wouldn't work?&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 19:29:55 GMT</pubDate>
    <dc:creator>mdaycock</dc:creator>
    <dc:date>2022-02-08T19:29:55Z</dc:date>
    <item>
      <title>PropertyDescriptorCollection.find causing fatal crash</title>
      <link>https://forums.autodesk.com/t5/net-forum/propertydescriptorcollection-find-causing-fatal-crash/m-p/10937219#M13708</link>
      <description>&lt;P&gt;We have a long-running process in 2019 that we need AutoCAD to report messages to the console window.&amp;nbsp; We are doing this by executing a Windows Forms DoEvents() to get AutoCAD to refresh the message in the console.&amp;nbsp; However, this will occasionally cause a fatal crash with an exception "object reference not set to the instance of an object" with this stack trace:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;System.NullReferenceException: Object reference not set to an instance of an object.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;at Autodesk.AutoCAD.Windows.Data.DynamicObjectBase.PropertyDescriptorCollection.Find(String name, Boolean ignoreCase)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;at Autodesk.AutoCAD.Ribbon.LayerComboText.LayerComboText_Loaded(Object sender, RoutedEventArgs e)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Windows .NET messages ...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Is there a better way to get output messages while a process is running?&amp;nbsp; Any ideas why this wouldn't work?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 19:29:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/propertydescriptorcollection-find-causing-fatal-crash/m-p/10937219#M13708</guid>
      <dc:creator>mdaycock</dc:creator>
      <dc:date>2022-02-08T19:29:55Z</dc:date>
    </item>
  </channel>
</rss>

