<?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 ObjectModified  error in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/objectmodified-error/m-p/2053729#M77198</link>
    <description>When I use ObjectModified event to do something and following code causes error:&lt;BR /&gt;
private void callback_ObjectModified(object sender, ObjectEventArgs e)&lt;BR /&gt;
{&lt;BR /&gt;
try&lt;BR /&gt;
{&lt;BR /&gt;
using (Transaction trans = HostApplicationServices.WorkingDatabase.TransactionManager.StartTransaction())&amp;lt; br&amp;gt; {&lt;BR /&gt;
/*do something*/&lt;BR /&gt;
trans.commit();&lt;BR /&gt;
}&lt;BR /&gt;
}&lt;BR /&gt;
catch (Exception ex)&lt;BR /&gt;
{&lt;BR /&gt;
/*do something*/&lt;BR /&gt;
}&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
the code crash at StartTransaction(), then I cannot fix it.&lt;BR /&gt;
Thanks for help</description>
    <pubDate>Mon, 27 Aug 2007 12:56:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-08-27T12:56:18Z</dc:date>
    <item>
      <title>ObjectModified  error</title>
      <link>https://forums.autodesk.com/t5/net-forum/objectmodified-error/m-p/2053729#M77198</link>
      <description>When I use ObjectModified event to do something and following code causes error:&lt;BR /&gt;
private void callback_ObjectModified(object sender, ObjectEventArgs e)&lt;BR /&gt;
{&lt;BR /&gt;
try&lt;BR /&gt;
{&lt;BR /&gt;
using (Transaction trans = HostApplicationServices.WorkingDatabase.TransactionManager.StartTransaction())&amp;lt; br&amp;gt; {&lt;BR /&gt;
/*do something*/&lt;BR /&gt;
trans.commit();&lt;BR /&gt;
}&lt;BR /&gt;
}&lt;BR /&gt;
catch (Exception ex)&lt;BR /&gt;
{&lt;BR /&gt;
/*do something*/&lt;BR /&gt;
}&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
the code crash at StartTransaction(), then I cannot fix it.&lt;BR /&gt;
Thanks for help</description>
      <pubDate>Mon, 27 Aug 2007 12:56:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/objectmodified-error/m-p/2053729#M77198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-08-27T12:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectModified  error</title>
      <link>https://forums.autodesk.com/t5/net-forum/objectmodified-error/m-p/2053730#M77199</link>
      <description>I don't think you can use transactions in that context.&lt;BR /&gt;
&lt;BR /&gt;
What is it you're trying to do?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;TINT&gt; wrote in message news:5701662@discussion.autodesk.com...&lt;BR /&gt;
When I use ObjectModified event to do something and following code causes error:&lt;BR /&gt;
private void callback_ObjectModified(object sender, ObjectEventArgs e)&lt;BR /&gt;
{&lt;BR /&gt;
try&lt;BR /&gt;
{&lt;BR /&gt;
using (Transaction trans = HostApplicationServices.WorkingDatabase.TransactionManager.StartTransaction())&amp;lt; br&amp;gt; {&lt;BR /&gt;
/*do something*/&lt;BR /&gt;
trans.commit();&lt;BR /&gt;
}&lt;BR /&gt;
}&lt;BR /&gt;
catch (Exception ex)&lt;BR /&gt;
{&lt;BR /&gt;
/*do something*/&lt;BR /&gt;
}&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
the code crash at StartTransaction(), then I cannot fix it.&lt;BR /&gt;
Thanks for help&lt;/TINT&gt;</description>
      <pubDate>Mon, 27 Aug 2007 13:19:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/objectmodified-error/m-p/2053730#M77199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-08-27T13:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectModified  error</title>
      <link>https://forums.autodesk.com/t5/net-forum/objectmodified-error/m-p/2053731#M77200</link>
      <description>I want to update BlockReference.</description>
      <pubDate>Mon, 27 Aug 2007 13:25:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/objectmodified-error/m-p/2053731#M77200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-08-27T13:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectModified  error</title>
      <link>https://forums.autodesk.com/t5/net-forum/objectmodified-error/m-p/2053732#M77201</link>
      <description>Store the id of the notifying object, and then&lt;BR /&gt;
open it later, after the operation is complete&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;TINT&gt; wrote in message news:5701711@discussion.autodesk.com...&lt;BR /&gt;
I want to update BlockReference.&lt;/TINT&gt;</description>
      <pubDate>Tue, 28 Aug 2007 08:14:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/objectmodified-error/m-p/2053732#M77201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-08-28T08:14:38Z</dc:date>
    </item>
  </channel>
</rss>

