<?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: External Code in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/external-code/m-p/3124932#M59699</link>
    <description>&lt;P&gt;Do you have example code to demonstrate what you mean?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Off the top of my head, AutoCAD does instantiate your CommandClass (once per document) when your custom command(s) is run if you don't declare your CommandMethodsw as Shared. Could that be what you're seeing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2011 23:43:32 GMT</pubDate>
    <dc:creator>StephenPreston</dc:creator>
    <dc:date>2011-08-15T23:43:32Z</dc:date>
    <item>
      <title>External Code</title>
      <link>https://forums.autodesk.com/t5/net-forum/external-code/m-p/3124744#M59698</link>
      <description>&lt;P&gt;What would be causing "External Code" to be running some of my routines.&lt;/P&gt;&lt;P&gt;I have breaks points that are hit when they shouldn't be and the call stack just says "External Code" is calling it.&lt;/P&gt;&lt;P&gt;I can also see that some of my code runs on initializing (because of debugging messages written to the editor) but nothing that I can step through to see what is triggering it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this on the swamp.&amp;nbsp;&lt;A target="_blank" href="http://www.theswamp.org/index.php?topic=13630.15"&gt;http://www.theswamp.org/index.php?topic=13630.15&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;Maybe this is the answer but I have no idea. And also don't know what a&amp;nbsp;static constructor﻿ is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 19:57:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/external-code/m-p/3124744#M59698</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2011-08-15T19:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: External Code</title>
      <link>https://forums.autodesk.com/t5/net-forum/external-code/m-p/3124932#M59699</link>
      <description>&lt;P&gt;Do you have example code to demonstrate what you mean?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Off the top of my head, AutoCAD does instantiate your CommandClass (once per document) when your custom command(s) is run if you don't declare your CommandMethodsw as Shared. Could that be what you're seeing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 23:43:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/external-code/m-p/3124932#M59699</guid>
      <dc:creator>StephenPreston</dc:creator>
      <dc:date>2011-08-15T23:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: External Code</title>
      <link>https://forums.autodesk.com/t5/net-forum/external-code/m-p/3125036#M59700</link>
      <description>&lt;P&gt;Sorry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought it was occuring more often than it actually is. It's only occuring on one event though and&amp;nbsp;I don't think it's causing any harm.﻿ Repetitively triggered but it doesn't get trapped in a loop unless I am stepping through in the IDE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a datagridview in a palette and it happens with the CellFormatting event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Sub DataGridView1_CellFormatting(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles DataGridView1﻿.CellFormatting﻿&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>Tue, 16 Aug 2011 04:00:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/external-code/m-p/3125036#M59700</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2011-08-16T04:00:58Z</dc:date>
    </item>
  </channel>
</rss>

