<?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: Wblock crashing in .NET in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/wblock-crashing-in-net/m-p/3706484#M52438</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;I also see this sometimes as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.InvalidOperationException: Operation is not valid due to the current state of the object.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Autodesk.AutoCAD.DatabaseServices.Transaction.CheckTopTransaction()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Autodesk.AutoCAD.DatabaseServices.Transaction.DeleteUnmanagedObject()&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This error happens when you use an API that requires an active transaction, with the most-likely culprits being ObjectId.GetObject() or TransactionManager.GetObject()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is in your code, and I suspect the other problem is as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need help tracking down the source of the errors, you're going to have to show the code where it happens. Otherwise, you will have to run your code in the debugger and it should break on the line when the exception occurs.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Nov 2012 20:33:54 GMT</pubDate>
    <dc:creator>DiningPhilosopher</dc:creator>
    <dc:date>2012-11-20T20:33:54Z</dc:date>
    <item>
      <title>Wblock crashing in .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/wblock-crashing-in-net/m-p/3704648#M52435</link>
      <description>&lt;P&gt;I have a .NET DLL that a gathers object ids of entities grouped within bounding boxes and then WBlocks each group&amp;nbsp;of entities&amp;nbsp;to individual dwg files. I'm getting an pretty consistent crash when transaction.commit gets called. If I comment out the wblock call (sourceDatabase.Wblock(targetDatabase, objectIdColl, dwgBasePoint, DuplicateRecordCloning.Ignore)) I never get the crash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone seen anything like this before? Any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 18:44:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wblock-crashing-in-net/m-p/3704648#M52435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-19T18:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wblock crashing in .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/wblock-crashing-in-net/m-p/3704662#M52436</link>
      <description>&lt;P&gt;I'm also seeing this every now and then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" title="Untitled.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/42892i0B5483AD0B69AA8D/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 18:52:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wblock-crashing-in-net/m-p/3704662#M52436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-19T18:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Wblock crashing in .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/wblock-crashing-in-net/m-p/3704716#M52437</link>
      <description>&lt;P&gt;I also see this sometimes as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.InvalidOperationException: Operation is not valid due to the current state of the object.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Autodesk.AutoCAD.DatabaseServices.Transaction.CheckTopTransaction()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Autodesk.AutoCAD.DatabaseServices.Transaction.DeleteUnmanagedObject()&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 19:26:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wblock-crashing-in-net/m-p/3704716#M52437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-19T19:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Wblock crashing in .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/wblock-crashing-in-net/m-p/3706484#M52438</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;I also see this sometimes as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.InvalidOperationException: Operation is not valid due to the current state of the object.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Autodesk.AutoCAD.DatabaseServices.Transaction.CheckTopTransaction()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Autodesk.AutoCAD.DatabaseServices.Transaction.DeleteUnmanagedObject()&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This error happens when you use an API that requires an active transaction, with the most-likely culprits being ObjectId.GetObject() or TransactionManager.GetObject()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is in your code, and I suspect the other problem is as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need help tracking down the source of the errors, you're going to have to show the code where it happens. Otherwise, you will have to run your code in the debugger and it should break on the line when the exception occurs.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2012 20:33:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wblock-crashing-in-net/m-p/3706484#M52438</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2012-11-20T20:33:54Z</dc:date>
    </item>
  </channel>
</rss>

