<?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 Getting strange handles for block references in certain files in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/getting-strange-handles-for-block-references-in-certain-files/m-p/10019605#M17569</link>
    <description>&lt;P&gt;When I'm querying the database for block references in certain files, I'm getting handles like &lt;EM&gt;-4066801656873546453&lt;/EM&gt; when they usually look something more like &lt;EM&gt;153919&lt;/EM&gt;. And when I try to get the block reference using the handle, it crashes my application with error "eUnknownHandle"!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;long handle = -4066801656873546453;
Handle hn = new Handle(handle);
ObjectId blockId = sideDb.GetObjectId(false, hn, 0); // Crashes here!&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It only seems to occur for certain files, but I can't really find any differences when looking at other files in the same project that &lt;EM&gt;do&lt;/EM&gt; work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody knows what's going on, and what can I do about the strange handles?&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2021 14:18:44 GMT</pubDate>
    <dc:creator>ottosson_mathias</dc:creator>
    <dc:date>2021-01-21T14:18:44Z</dc:date>
    <item>
      <title>Getting strange handles for block references in certain files</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-strange-handles-for-block-references-in-certain-files/m-p/10019605#M17569</link>
      <description>&lt;P&gt;When I'm querying the database for block references in certain files, I'm getting handles like &lt;EM&gt;-4066801656873546453&lt;/EM&gt; when they usually look something more like &lt;EM&gt;153919&lt;/EM&gt;. And when I try to get the block reference using the handle, it crashes my application with error "eUnknownHandle"!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;long handle = -4066801656873546453;
Handle hn = new Handle(handle);
ObjectId blockId = sideDb.GetObjectId(false, hn, 0); // Crashes here!&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It only seems to occur for certain files, but I can't really find any differences when looking at other files in the same project that &lt;EM&gt;do&lt;/EM&gt; work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody knows what's going on, and what can I do about the strange handles?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 14:18:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-strange-handles-for-block-references-in-certain-files/m-p/10019605#M17569</guid>
      <dc:creator>ottosson_mathias</dc:creator>
      <dc:date>2021-01-21T14:18:44Z</dc:date>
    </item>
  </channel>
</rss>

