<?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: Error reading Dictionary &amp;quot;Object reference not set to an instance of an in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/error-reading-dictionary-quot-object-reference-not-set-to-an/m-p/3136052#M59587</link>
    <description>&lt;P&gt;Override in a overrule?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;in a&amp;nbsp;overrule's check out Stephen Preston's classes on it and if I remember correctly he suggests using OpenCloseTransactions&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2011 14:30:49 GMT</pubDate>
    <dc:creator>jeff</dc:creator>
    <dc:date>2011-08-25T14:30:49Z</dc:date>
    <item>
      <title>Error reading Dictionary "Object reference not set to an instance of an object﻿"</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-reading-dictionary-quot-object-reference-not-set-to-an/m-p/3135374#M59583</link>
      <description>&lt;P&gt;Can anyone please explain what is going wrong here.&lt;/P&gt;&lt;P&gt;I'm getting a "NullReferenceException.&amp;nbsp;Object reference not set to an instance of an object"﻿ using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    For Each SetEntry As DBDictionaryEntry In SetRootDict
        Dim SetEntryDict As DBDictionary = CType(SetEntry.Value.GetObject(OpenMode.ForRead), DBDictionary)
    Next&lt;/PRE&gt;&lt;P&gt;I have the same lines letter for letter in a different procedure and referring the same unchanged root dictionary where it works fine. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 00:16:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-reading-dictionary-quot-object-reference-not-set-to-an/m-p/3135374#M59583</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2011-08-25T00:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error reading Dictionary "Object reference not set to an instance of an</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-reading-dictionary-quot-object-reference-not-set-to-an/m-p/3135656#M59584</link>
      <description>&lt;P&gt;I replaced it with an alternative that works.&lt;/P&gt;&lt;P&gt;Dim SetEntryDict As DBDictionary = trans.GetObject(SetRootDict.GetAt(SetEntry.Key), OpenMode.ForRead)﻿&lt;/P&gt;&lt;P&gt;A bit confused why the previous line would work in one location and not another.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 09:10:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-reading-dictionary-quot-object-reference-not-set-to-an/m-p/3135656#M59584</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2011-08-25T09:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error reading Dictionary "Object reference not set to an instance of an</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-reading-dictionary-quot-object-reference-not-set-to-an/m-p/3135714#M59585</link>
      <description>&lt;P&gt;Was one inside a transaction and the other not?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not When TopTransaction is called it might cause that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 10:58:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-reading-dictionary-quot-object-reference-not-set-to-an/m-p/3135714#M59585</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2011-08-25T10:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error reading Dictionary "Object reference not set to an instance of an</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-reading-dictionary-quot-object-reference-not-set-to-an/m-p/3135740#M59586</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both are located inside the top transaction. I think this is relevant but the only difference I see is that the one that didn't work &amp;nbsp;was being called from an override. Probably not it though, just taking a wild stab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 11:16:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-reading-dictionary-quot-object-reference-not-set-to-an/m-p/3135740#M59586</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2011-08-25T11:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error reading Dictionary "Object reference not set to an instance of an</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-reading-dictionary-quot-object-reference-not-set-to-an/m-p/3136052#M59587</link>
      <description>&lt;P&gt;Override in a overrule?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;in a&amp;nbsp;overrule's check out Stephen Preston's classes on it and if I remember correctly he suggests using OpenCloseTransactions&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 14:30:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-reading-dictionary-quot-object-reference-not-set-to-an/m-p/3136052#M59587</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2011-08-25T14:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error reading Dictionary "Object reference not set to an instance of an</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-reading-dictionary-quot-object-reference-not-set-to-an/m-p/3136078#M59588</link>
      <description>&lt;P&gt;Sorry.. during an overrule. not an override&lt;/P&gt;&lt;P&gt;Yea I've read the classes and watched the videos.&lt;/P&gt;&lt;P&gt;I forgot about the&amp;nbsp;OpenCloseTransactions﻿ thing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything seems to be stable at the moment but I should change that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 14:54:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-reading-dictionary-quot-object-reference-not-set-to-an/m-p/3136078#M59588</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2011-08-25T14:54:07Z</dc:date>
    </item>
  </channel>
</rss>

