<?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: Debugging 2012 addin with VS2010 in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3077078#M140271</link>
    <description>&lt;P&gt;The suggested solution﻿ does not work &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;BR /&gt;&lt;BR /&gt;Same problem in VS2008 as well.﻿&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2011 12:10:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-06-30T12:10:47Z</dc:date>
    <item>
      <title>Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3065260#M140266</link>
      <description>&lt;P&gt;I cannot debug an addin for Inventor 2012 from Visual Studio 2010 professional on Win7 64.&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I started with a new “Autodesk Inventor Addin” project&lt;/P&gt;&lt;P&gt;Set debug “Start external program” to inventor&lt;/P&gt;&lt;P&gt;Added a form and called it from StandardAddInServer.Activate sub&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;IF I debug from here inventor starts but form does not open. Addin not loaded.&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Move *.addin file to Inventor addins&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Now when running debug, form opens but breakpoints do not work.&amp;nbsp;VS reports no errors on build.&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;So... Is there a tutorial or good instructions for this anywhere? I could not find anything specific to 2012 addins.&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I can go back to registering the com...&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2011 17:26:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3065260#M140266</guid>
      <dc:creator>sellis</dc:creator>
      <dc:date>2011-06-20T17:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3065962#M140267</link>
      <description>&lt;P&gt;Hi Stan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you try with below steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Install Inventor wizard from SDK\Developer Tools\Tools\Wizards\InventorWizards.msi.&lt;/LI&gt;
&lt;LI&gt;Open Visual Studio, new an Inventor addin project with template.&lt;/LI&gt;
&lt;LI&gt;Add you code to addin.&lt;/LI&gt;
&lt;LI&gt;Copy the &lt;STRONG&gt;.addin&lt;/STRONG&gt; file to proper location according to step #3) in Readme.txt.&lt;/LI&gt;
&lt;LI&gt;In VS, open the addin Properties(Project-&amp;gt;&lt;EM&gt;[addinname]&lt;/EM&gt; Properties), on Compile tab, set below settings:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Configuration:&lt;/STRONG&gt; Debug&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Build output path:&lt;/STRONG&gt; C:\Program Files\Autodesk\Inventor &lt;EM&gt;[version]\&lt;/EM&gt;Bin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(this will avoid manually copying the binary to that folder).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;6. Compile the addin(if&amp;nbsp;you don't set the Build output path above, just manually copy the binary to the Inventor Bin folder).&lt;/P&gt;
&lt;P&gt;7. Launch Inventor.&lt;/P&gt;
&lt;P&gt;8. In VS, Tools-&amp;gt;Attach to Process…-&amp;gt;choose Inventor.exe-&amp;gt;Attach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you can add breakpoint in your addin project, and debug it. Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if any questions.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2011 09:03:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3065962#M140267</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2011-06-21T09:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3067312#M140268</link>
      <description>&lt;P&gt;I want to update the steps as below which maybe more convenient:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Install Inventor wizard from SDK.&lt;/LI&gt;
&lt;LI&gt;Open Visual Studio, new an Inventor addin with template.&lt;/LI&gt;
&lt;LI&gt;Add you code to addin.&lt;/LI&gt;
&lt;LI&gt;Copy the &lt;FONT color="#800000"&gt;&lt;STRONG&gt;.addin&lt;/STRONG&gt;&lt;/FONT&gt; file to proper location according to step #3) in &lt;FONT color="#800000"&gt;Readme.txt&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI&gt;Do either change of below two to make sure the &lt;FONT color="#800000"&gt;.addin&lt;/FONT&gt; has the assembly path point to your binary:&lt;/LI&gt;
&lt;/OL&gt;
&lt;UL&gt;
&lt;LI&gt;Edit the&lt;FONT color="#800000"&gt; &lt;STRONG&gt;.addin&lt;/STRONG&gt;&lt;/FONT&gt; file, and change the assembly path to the full path of your binary being created: &lt;FONT color="#800000"&gt;&amp;lt;Assembly&amp;gt;&lt;EM&gt;[binary full path here&lt;/EM&gt;&lt;EM&gt;]&lt;/EM&gt;&lt;EM&gt;&amp;lt;/&lt;/EM&gt;Assembly&amp;gt;.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;Or in VS, open the project Properties(&lt;FONT color="#800000"&gt;Project-&amp;gt;&lt;EM&gt;[project name]&lt;/EM&gt; Properties&lt;/FONT&gt;), on &lt;FONT color="#800000"&gt;Compile&lt;/FONT&gt; tab, set the &lt;FONT color="#800000"&gt;Build output path:&lt;/FONT&gt; to the Inventor Bin folder(&lt;FONT color="#800000"&gt;C:\Program Files\Autodesk\Inventor &lt;EM&gt;[version]\&lt;/EM&gt;Bin&lt;/FONT&gt;).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;6. In VS, open the project Properties(&lt;FONT color="#800000"&gt;Project-&amp;gt;&lt;EM&gt;[project name]&lt;/EM&gt; Properties&lt;/FONT&gt;), on &lt;FONT color="#800000"&gt;Debug&lt;/FONT&gt; tab, set the &lt;FONT color="#800000"&gt;Start external program:&lt;/FONT&gt; to the Inventor.exe path.&lt;/P&gt;
&lt;P&gt;7. Set breakpoint in addin code and debug your project(&lt;FONT color="#800000"&gt;Debug-&amp;gt;Start debugging F5&lt;/FONT&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will start the external program and attach to it&amp;nbsp;so need not to attach the process manually after launching it.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2011 03:43:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3067312#M140268</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2011-06-22T03:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3067756#M140269</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#000000"&gt;First I &lt;/FONT&gt;reset all settings in VS2010&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Added code consists of a message box at end of StandardAddInServer.Activate.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Code runs fine outside VS2010&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Times New Roman"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;When debugging from VS breakpoints in StandardAddInServer.Activate work on load.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;After Inventor starts and I move the mouse I get &lt;/FONT&gt;&lt;FONT face="Calibri" size="2" color="#000000"&gt;“DisconnectedContext was detected” &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&lt;FONT face="Calibri"&gt;&lt;FONT color="#000000"&gt;“Context 0x302278' is disconnected.&amp;nbsp; Releasing the interfaces from the current context (context 0x301f00).This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/apartments stay alive until the applicationis completely done with the RuntimeCallableWrappers that represent COM components that liveinside them.”&lt;/FONT&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="3" face="Times New Roman" color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;Immediate window has lots of errors and warnings while loading like...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000000"&gt;“System.Windows.Data Error: 39 : BindingExpression path error: 'Id' property not found on 'object' ''InvFlowRibbonPanel' (HashCode=24807479)'. BindingExpression:Path=Id; DataItem='InvFlowRibbonPanel' (HashCode=24807479); target element is 'KeyboardActivatableToggleButton' (Name='PART_CollapsedPanelButton'); target property is 'AutomationId' (type 'String')”&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="3" face="Times New Roman" color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;&lt;FONT size="3" face="Times New Roman" color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;I was getting this problem before in IV2012 while trying to debug&amp;nbsp;com registered dll. Any ideas?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman" color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;Thanks &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;Stan&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2011 13:19:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3067756#M140269</guid>
      <dc:creator>sellis</dc:creator>
      <dc:date>2011-06-22T13:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3070954#M140270</link>
      <description>&lt;P&gt;Same issues here. This wasn't a problem with Inventor 2011. Looks like this is something Autodesk overlooked. I can attach to the process manually but it's a bit of a pain. I'm getting a similar disconnected context error when having VS2010 start an external program (Inventor 2012).&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2011 12:59:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3070954#M140270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-24T12:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3077078#M140271</link>
      <description>&lt;P&gt;The suggested solution﻿ does not work &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;BR /&gt;&lt;BR /&gt;Same problem in VS2008 as well.﻿&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2011 12:10:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3077078#M140271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-30T12:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3078154#M140272</link>
      <description>&lt;P&gt;Can you add a simple addin project&amp;nbsp;that I can debug to see the problem you encountered. I guess you have added some content that I did not. And please add detailed steps if you think it is necessary for me to follow.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2011 01:56:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3078154#M140272</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2011-07-01T01:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3078370#M140273</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I made this simple addin with a ribbonbar and a button﻿, when I debug and click on the ribbonbar/button I get the error: “DisconnectedContext was detected” ﻿﻿﻿&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2011 08:07:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3078370#M140273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-01T08:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3078922#M140274</link>
      <description>&lt;P&gt;Please try the attached one. Modify the .addin file to update the Assembly path to the full file name of the .\Addin\BWEdocxInventor2012Vault\bin\Debug\BWEdocxInventor2012Vault.dll.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2011 15:29:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3078922#M140274</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2011-07-01T15:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3103122#M140275</link>
      <description>&lt;P&gt;Sorry for the late reply, I've been on vacation.﻿&lt;BR /&gt;&lt;BR /&gt;I've tried the attached addin﻿, and modified the addin file﻿ - I still get the error: “DisconnectedContext was detected”﻿ &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;BR /&gt;&lt;BR /&gt;Please provide a solution - this is very important to me﻿.&lt;BR /&gt;&lt;BR /&gt;﻿&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2011 12:06:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3103122#M140275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-25T12:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3104280#M140276</link>
      <description>&lt;P&gt;Can you share more info that which step you encounterred this error.&amp;nbsp;Did you&amp;nbsp;debug into&amp;nbsp;the breakpoint?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2011 07:32:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3104280#M140276</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2011-07-26T07:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3104340#M140277</link>
      <description>&lt;P&gt;If i debug your code it goes into the breakpoint, but when i step to linie 66 i get the error below (I'm running a 64-bit ﻿windows XP and VS2010 SP1).&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;No Source Avaiable&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Call stack location:&lt;/STRONG&gt;&lt;BR /&gt;msvcm90.dll!&amp;lt;CrtImplementationDetails&amp;gt;DoDllLanguageSupportValidation() Line505&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Source file information:&lt;/STRONG&gt;&lt;BR /&gt;Locating source for 'f:\dd\vctools\crt_bld\self_64_amd64\crt\src\minternal.h'. Checksum: MD5 {35 fe 78 dc 38 4e b df 99 82 ab 9 9a ba 9d 2f}&lt;BR /&gt;The file 'f:\dd\vctools\crt_bld\self_64_amd64\crt\src\minternal.h' does not exist.&lt;BR /&gt;Looking in script documents for 'f:\dd\vctools\crt_bld\self_64_amd64\crt\src\minternal.h'...&lt;BR /&gt;Looking in the projects for 'f:\dd\vctools\crt_bld\self_64_amd64\crt\src\minternal.h'.&lt;BR /&gt;The file was not found in a project.&lt;BR /&gt;Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\'...&lt;BR /&gt;Source was found at 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\minternal.h'.&lt;BR /&gt;Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...&lt;BR /&gt;Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...&lt;BR /&gt;Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...&lt;BR /&gt;Determining whether the checksum matches for the following locations:&lt;BR /&gt;1: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\minternal.h Checksum: MD5 {c9 db 5a 4a a1 c7 49 7b 27 a6 a7 b4 4b e7 a d} Checksum doesn't match.&lt;BR /&gt;The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: f:\dd\vctools\crt_bld\self_64_amd64\crt\src\minternal.h.&lt;BR /&gt;The debugger could not locate the source file 'f:\dd\vctools\crt_bld\self_64_amd64\crt\src\minternal.h'.﻿﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i insert addtional code eg.﻿ a simpel MsgBox and try to debug i still get the error: “DisconnectedContext was detected”﻿ ﻿﻿&lt;/P&gt;&lt;PRE&gt;    Public Sub m_featureCountButtonDef_OnExecute(ByVal Context As Inventor.NameValueMap) Handles m_featureCountButtonDef.OnExecute
      MsgBox("Hello", MsgBoxStyle.Information﻿)
    End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;﻿&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2011 09:23:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3104340#M140277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-26T09:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3104420#M140278</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN; mso-fareast-language: EN-CA; mso-bidi-language: AR-SA;"&gt;Been busy so just getting back to this...&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN; mso-fareast-language: EN-CA; mso-bidi-language: AR-SA;"&gt;64-bit ﻿win7 and VS2010&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN; mso-fareast-language: EN-CA; mso-bidi-language: AR-SA;"&gt;Tried out the posted addin sample. Can step through Activate and Inventor finishes loading.&amp;nbsp;When I move the mouse over Inventor I get -﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN; mso-fareast-language: EN-CA; mso-bidi-language: AR-SA;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN; mso-fareast-language: EN-CA; mso-bidi-language: AR-SA;"&gt;&lt;EM&gt;DisconnectedContext was detected&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Message: Context 0x3ac0f8' is disconnected.&amp;nbsp; Releasing the interfaces from the current context (context 0x3abd80).This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/apartments stay alive until the applicationis completely done with the RuntimeCallableWrappers that represent COM components that liveinside them.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN; mso-fareast-language: EN-CA; mso-bidi-language: AR-SA;"&gt;Stan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2011 11:57:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3104420#M140278</guid>
      <dc:creator>sellis</dc:creator>
      <dc:date>2011-07-26T11:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3104618#M140279</link>
      <description>&lt;P&gt;I have found a solution to the problem.&lt;BR /&gt;In VS2010 under Debug, Exceptions ...&lt;BR /&gt;remove checkmark from﻿&amp;nbsp;ContextSwitchDeadlock and DisconnectedContext﻿.&lt;/P&gt;&lt;P&gt;&lt;IMG title="Image.jpg" src="http://forums.autodesk.com/t5/image/serverpage/image-id/11150i6624EBE6AD68D090/image-size/original?v=mpbl-1&amp;amp;px=-1" align="middle" alt="Image.jpg" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2011 13:42:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3104618#M140279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-26T13:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3105036#M140280</link>
      <description>&lt;P&gt;This worked on the&amp;nbsp;sample addin but...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tried debugging a very&amp;nbsp;complex project "Visual Studio Remote Debugging Monitor" runs one CPU at 100% as soon I open a drawing. This project runs fine when not debugging.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2011 17:43:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3105036#M140280</guid>
      <dc:creator>sellis</dc:creator>
      <dc:date>2011-07-26T17:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3765690#M140281</link>
      <description>&lt;P&gt;HEllo Rocky&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Got everythig &amp;nbsp;correct, but I can't find .addin file in my project folder...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you please point out me in corrct way.. please&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; &amp;nbsp;&lt;SPAN&gt;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; &amp;nbsp;&lt;SPAN&gt;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 04:23:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3765690#M140281</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-31T04:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3766568#M140282</link>
      <description>&lt;P&gt;When you use InventorWizards to create your addin project, you can find the .addin file in the project folder. Can you share more info about your situation? Like which Inventor you use, and in which language you create &amp;nbsp;your addin, and the VS version.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 05:04:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3766568#M140282</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2013-02-01T05:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3766570#M140283</link>
      <description>&lt;P&gt;Hello Rocky,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Mate for replies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a way tofix the above issue with your post and updated in this &lt;A target="_self" href="https://forums.autodesk.com/t5/Autodesk-Inventor-Customization/Plug-in-Build-Error/m-p/3766467#M42109"&gt;thread&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;i Got 2 Main questions in my head&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. &amp;nbsp; But I see there are two types of templates to use for VS2010. one is Autodesk Inventor AddIn (old Template) and Autodesk Inventor 2013 AddIn (updated).&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I am Using Autodesk FDS 2013 Premium and VS2010 Express with SP1 and with Windows SDK for .Net 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;There are .maifest errors when I use updated templates and no errors with old templates.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Why is That?????????&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;2. &amp;nbsp; when I am debugging a simple module, VS2010 is opening Inventor and after i opening an assembly it is doing nothing. &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;Is there something that I am missing???&amp;nbsp;&lt;/STRONG&gt;(fixed debug procedire foro express versions)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. &amp;nbsp; How to get addin Button on to Auodesk Invedntor User interface??? so to use directly from Inventor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advace ffor your unlimited patience.&lt;/P&gt;&lt;P&gt;will wait on repply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 05:17:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3766570#M140283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-01T05:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging 2012 addin with VS2010</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3768612#M140284</link>
      <description>&lt;P&gt;My answer are as below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. From Inventor 2013 we merged the InventorWizards installer to DeveloperTool.msi, and make sure we can install the DeveloperTools side by side with previous ones, so you can see the different versions of Inventor wizards templates, and the updated wizards template will have the latest Autodesk.Inventor.Interop.dll referenced if the VS supports(like VS2010 supports Inventor 2003).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the error, can you copy the error info here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. If I understand right, you mean you used the VS2010 to launch Inventor during debuged it, and then it did run into the code when you open an assembly document? Can you double check that you have the .addin file copied to proper folder, and set the Dll path in the .addin correctly? You can get help from the Readme.txt file in the addin project to know where to copy the .addin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. You can create your own controls on Ribbon in the addin project, you can find sample in SDK (like SimpleAddin : C:\Users\Public\Documents\Autodesk\Inventor 2013\SDK\DeveloperTools\Samples\VB.NET\AddIns\SimpleAddIn) with the source code.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 07:03:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/debugging-2012-addin-with-vs2010/m-p/3768612#M140284</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2013-02-04T07:03:44Z</dc:date>
    </item>
  </channel>
</rss>

