<?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: No error message from add-in in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9186653#M69122</link>
    <description>&lt;P&gt;There is no screen, Inventor just hangs with a wait cursor and my form stays in front.&lt;/P&gt;&lt;P&gt;The problem is that inventor gives sometimes an error on an operation, and then i restart the inventor and the operation goes good for a 100 times.&lt;/P&gt;&lt;P&gt;So i can't really debug this.&lt;/P&gt;&lt;P&gt;An example:&lt;/P&gt;&lt;PRE&gt;            Try
                If oview.Height &amp;gt; oview.Width Then
                    oview.RotateByAngle(1.57079633, True)
                End If
            Catch ex As Exception
                If MsgBox("error", MsgBoxStyle.YesNo, "error") = MsgBoxResult.No Then
                    Exit Sub
                End If
            End Try&lt;/PRE&gt;&lt;P&gt;Sometimes placing a note on a drawing gives an error, Restart inventor and placing the note on the same drawing works great.&lt;/P&gt;&lt;P&gt;An other example is when i try to know if a sheetmetal has a bend.&lt;/P&gt;&lt;PRE&gt;Try
                If oSheetMetalCompDef.Bends.Count &amp;gt; 0 Then
                    oBended = True
                End If
                'Sometimes this gives an error and than I check the flatpattern
            Catch e As Exception
                If oSheetMetalCompDef.HasFlatPattern = True Then
                    Try
                        If oSheetMetalCompDef.FlatPattern.FlatBendResults.Count &amp;gt; 0 Then
                           oBended = True
                        End If
                    Catch ex As Exception
                        msgbox ("can't check if sheetmetal is bend!")                        
                    End Try
                Else
msgbox ("can't check if sheetmetal is bend!")  
End If
            End Try&lt;/PRE&gt;&lt;P&gt;I also have a code to check if there is a thread in the part. This also freezes inventor sometimes.&lt;/P&gt;&lt;P&gt;This code worked great before we update to inventor 2020&lt;/P&gt;&lt;P&gt;Now inventor freezes and we have to restart.&lt;/P&gt;&lt;P&gt;After the restart the code can run great on the same part or drawing,&lt;/P&gt;&lt;P&gt;but can go wrong on an other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i have inserted the try so inventor sometimes cannot do something that he can do after a restart, with the same project and files. But when the try goes to the catch, than the user can close the form and save his work without Inventor hanging. Now he must close inventor whit task-manager and reopen inventor and all the files he is working with and the changes he has made and not saved or gone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is very frustrating.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2019 08:42:47 GMT</pubDate>
    <dc:creator>AJK2010</dc:creator>
    <dc:date>2019-12-06T08:42:47Z</dc:date>
    <item>
      <title>No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9169986#M69117</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;My add-in&amp;nbsp;worked&amp;nbsp;great in inventor 2018.&lt;/P&gt;&lt;P&gt;After the upgrade to inventor 2020 my add-in freezes inventor when an error is happening.&lt;/P&gt;&lt;P&gt;I use Try in my add-in to intercept the error and to show a messagebox to the user.&lt;/P&gt;&lt;P&gt;But the messagebox is not shown and inventor freezes.&lt;/P&gt;&lt;P&gt;If there is no try in my code and there is an error&amp;nbsp;inventor is not showing an error message either and freezes.&lt;/P&gt;&lt;P&gt;In the attachments there is a screenshot of te error message&amp;nbsp;I am missing.&lt;/P&gt;&lt;P&gt;I don't know if an update from windows 10 or .net or inventor is causing the missing error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no other way to resume your work then kill inventor with the taskmanager.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there people with the same problem?&lt;/P&gt;&lt;P&gt;What can i do to solve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:34:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9169986#M69117</guid>
      <dc:creator>AJK2010</dc:creator>
      <dc:date>2019-11-27T15:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9170921#M69118</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating and using the add-ins in following environment :&lt;/P&gt;&lt;P&gt;* Windows 10 1909&lt;/P&gt;&lt;P&gt;* Inventor 2020.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I fell that Inventor older then 2020 are ignore exceptions that are thrown by add-ins, and Inventor 2020 shows an error dialog.&lt;/P&gt;&lt;P&gt;This phenomenon is not compared exactly and may be wrong (lie).&lt;/P&gt;&lt;P&gt;But some of my add-ins showed the error dialog when I migrate to Inventor 2020, and the dialog had caused by not caught exceptions in my add-ins.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.freeradical.jp" target="_blank" rel="noopener"&gt;Freeradical&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hideo Yamada&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 00:08:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9170921#M69118</guid>
      <dc:creator>HideoYamada</dc:creator>
      <dc:date>2019-11-28T00:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9171722#M69119</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Which AddIn template you have?&lt;/P&gt;&lt;P&gt;Did you convert the AddInServer.vb for 2020. And which version of Framework are you using?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 11:16:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9171722#M69119</guid>
      <dc:creator>Dev_rim</dc:creator>
      <dc:date>2019-11-28T11:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9172350#M69120</link>
      <description>&lt;P&gt;The exception is thrown in TitleBlockCopy method where you said that you have the Try Catch statement:&lt;BR /&gt;- make sure to catch the generic Exception (at least for now),&lt;BR /&gt;- make sure to not throw Exception in Catch block! Use a simple MsgBox for now,&lt;BR /&gt;- simplify your method and raise an exception yourself:&lt;/P&gt;&lt;PRE&gt;Try
  Throw New Exception("I should have checked if object was null!")
Catch ex As Exception 
  MsgBox(ex.ToString(), MsgBoxStyle.Critical, "MY EX MESSAGE")
End Try &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Try to make the same operation TitleBlockCopy method does thru UI instead.&lt;BR /&gt;&lt;BR /&gt;You have Inventor 2020.2 and nothing I said before was useful? Try to uninstall last update and reproduce the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 17:06:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9172350#M69120</guid>
      <dc:creator>CattabianiI</dc:creator>
      <dc:date>2019-11-28T17:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9174060#M69121</link>
      <description>&lt;P&gt;could the messagebox be off the screen or below Inventor?&lt;/P&gt;&lt;P&gt;did you try to run the code from visual studio?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 17:02:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9174060#M69121</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2019-11-29T17:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9186653#M69122</link>
      <description>&lt;P&gt;There is no screen, Inventor just hangs with a wait cursor and my form stays in front.&lt;/P&gt;&lt;P&gt;The problem is that inventor gives sometimes an error on an operation, and then i restart the inventor and the operation goes good for a 100 times.&lt;/P&gt;&lt;P&gt;So i can't really debug this.&lt;/P&gt;&lt;P&gt;An example:&lt;/P&gt;&lt;PRE&gt;            Try
                If oview.Height &amp;gt; oview.Width Then
                    oview.RotateByAngle(1.57079633, True)
                End If
            Catch ex As Exception
                If MsgBox("error", MsgBoxStyle.YesNo, "error") = MsgBoxResult.No Then
                    Exit Sub
                End If
            End Try&lt;/PRE&gt;&lt;P&gt;Sometimes placing a note on a drawing gives an error, Restart inventor and placing the note on the same drawing works great.&lt;/P&gt;&lt;P&gt;An other example is when i try to know if a sheetmetal has a bend.&lt;/P&gt;&lt;PRE&gt;Try
                If oSheetMetalCompDef.Bends.Count &amp;gt; 0 Then
                    oBended = True
                End If
                'Sometimes this gives an error and than I check the flatpattern
            Catch e As Exception
                If oSheetMetalCompDef.HasFlatPattern = True Then
                    Try
                        If oSheetMetalCompDef.FlatPattern.FlatBendResults.Count &amp;gt; 0 Then
                           oBended = True
                        End If
                    Catch ex As Exception
                        msgbox ("can't check if sheetmetal is bend!")                        
                    End Try
                Else
msgbox ("can't check if sheetmetal is bend!")  
End If
            End Try&lt;/PRE&gt;&lt;P&gt;I also have a code to check if there is a thread in the part. This also freezes inventor sometimes.&lt;/P&gt;&lt;P&gt;This code worked great before we update to inventor 2020&lt;/P&gt;&lt;P&gt;Now inventor freezes and we have to restart.&lt;/P&gt;&lt;P&gt;After the restart the code can run great on the same part or drawing,&lt;/P&gt;&lt;P&gt;but can go wrong on an other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i have inserted the try so inventor sometimes cannot do something that he can do after a restart, with the same project and files. But when the try goes to the catch, than the user can close the form and save his work without Inventor hanging. Now he must close inventor whit task-manager and reopen inventor and all the files he is working with and the changes he has made and not saved or gone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is very frustrating.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 08:42:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9186653#M69122</guid>
      <dc:creator>AJK2010</dc:creator>
      <dc:date>2019-12-06T08:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9186680#M69123</link>
      <description>&lt;P&gt;I used my Addin for inventor 2015 to convert it to inventor 2018, and then i converted it to 2020.&lt;/P&gt;&lt;P&gt;I just deleted the reference to the older dll and added the dll from the new inventor.&lt;/P&gt;&lt;P&gt;then I looked for errors in my code and solved them and then I recompiled the Addin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something special in de StandardAddInServer code that i have to look for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Framework 4.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a new Addin from start with the template for inventor2020, only with the program that causes inventor to hang.&lt;/P&gt;&lt;P&gt;I have installed it with one user for testing.&lt;/P&gt;&lt;P&gt;I hope this works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 09:07:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9186680#M69123</guid>
      <dc:creator>AJK2010</dc:creator>
      <dc:date>2019-12-06T09:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9187161#M69124</link>
      <description>&lt;P&gt;I use "SimpleAddIn" project always when i need a template project. Project Folder in :&lt;/P&gt;&lt;P&gt;C:\Users\Public\Documents\Autodesk\Inventor 2020\SDK\DeveloperTools\Samples\VB.NET\AddIns&lt;/P&gt;&lt;P&gt;If you cant reach to folder try to install developertools.msi in:&lt;/P&gt;&lt;P&gt;C:\Users\Public\Documents\Autodesk\Inventor 2020\SDK&lt;/P&gt;&lt;P&gt;Simple Add-In project works with simple class logic. Its to easy for editing. You can try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It might be a logic error if your inventor freezes, so maybe you change the addIn Template.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And one more thing to add. Sometimes Framework 4.5 and templates dont match each other. This might be your problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 13:29:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9187161#M69124</guid>
      <dc:creator>Dev_rim</dc:creator>
      <dc:date>2019-12-06T13:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9190428#M69125</link>
      <description>&lt;P&gt;Which framework do i have to use than?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 08:40:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9190428#M69125</guid>
      <dc:creator>AJK2010</dc:creator>
      <dc:date>2019-12-09T08:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9190871#M69126</link>
      <description>&lt;P&gt;When i do a&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Throw New Exception("I should have checked if object was null!")&lt;/PRE&gt;&lt;P&gt;in my code, the try is working fine and goes to the catch.&lt;/P&gt;&lt;P&gt;I see the msg and inventor doesn't hang.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think inventor hangs when doing the command and doesn't pass the exception back to my add-in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 12:53:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9190871#M69126</guid>
      <dc:creator>AJK2010</dc:creator>
      <dc:date>2019-12-09T12:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9190974#M69127</link>
      <description>&lt;P&gt;Looking at your code make me think about what I said a few days ago:&lt;BR /&gt;&lt;SPAN&gt;- make sure to not throw Exception in Catch block! Use a simple MsgBox for now,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;oSheetMetalCompDef is malformed or simply null you will raise an exception inside the catch block and probably&amp;nbsp; you are inside the catch block for the very same reason; it would be better to check null before being in the catch block, by the way you could try to try catch the entire catch block:&lt;/P&gt;&lt;PRE&gt;            If oSheetMetalCompDef.Bends.Count &amp;gt; 0 Then
                oBended = True
            End If
            'Sometimes this gives an error and than I check the flatpattern
        Catch e As Exception
            Try
                If oSheetMetalCompDef.HasFlatPattern = True Then
                    If oSheetMetalCompDef.FlatPattern.FlatBendResults.Count &amp;gt; 0 Then
                        oBended = True
                    End If
                Else
                    MsgBox("can't check if sheetmetal is bend!")
                End If
            Catch ex As Exception
                MsgBox("can't check if sheetmetal is bend!")
            End Try
        End Try&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;You might even try to reproduce the Inventor getting stuck systematically, change your method in something like this:&lt;/P&gt;&lt;PRE&gt;Try
  Throw New Exception("I should have checked if object was null!")
Catch ex As Exception &lt;BR /&gt;  Throw New Exception("The object was null, and I'm calling a method on it in a catch block: this is BAD!")
  ' ... I could have try catched the second exception at least...
End Try &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;What 's changed from Inventor 2018? Many things, maybe the Inventor exception handling during commands or even the .NET framework exception handling, however&amp;nbsp;what I showed you is a safer way to manage exception.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 13:39:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9190974#M69127</guid>
      <dc:creator>CattabianiI</dc:creator>
      <dc:date>2019-12-09T13:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9198021#M69128</link>
      <description>&lt;P&gt;Changed my code, with no result.&lt;/P&gt;&lt;P&gt;I think it is strange that inventor doesn't handle an error.&lt;/P&gt;&lt;P&gt;When i make a small windows program and i throw an exception without the try catch, I get an error dialogbox.&lt;/P&gt;&lt;P&gt;When i throw an exception in my add-in in inventor, nothing happens.&lt;/P&gt;&lt;P&gt;In the past i always got the same error dialog as the windows app when an error happens in my add-in.&lt;/P&gt;&lt;P&gt;Inventor just blocks this or does not handle the error and showing me the error dialog.&lt;/P&gt;&lt;P&gt;There is no warning that there is going something wrong in the add-in.&lt;/P&gt;&lt;P&gt;When i throw an exception in a try than the code is handled and goes to catch. So this works ok.&lt;/P&gt;&lt;P&gt;I have the feeling that sometimes inventor freezes on the actions that i do with my add-in and can't give the exception back to my add-in. So my add-in can't handle the error and stop the add-in and keep inventor responsive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We did the upgrade from inventor 2018 to 2020 because 2020 is handling large assembly much better than 2018.&lt;/P&gt;&lt;P&gt;But now this is a big problem.&lt;/P&gt;&lt;P&gt;Can someone please make a small test add-in, trow an exception and confirm that he also doesn't get the error dialog?&lt;/P&gt;&lt;P&gt;See the attached screenshot, this is the dialog i get with the windows program, and that i am missing when the same exception is thrown in inventor.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 08:36:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9198021#M69128</guid>
      <dc:creator>AJK2010</dc:creator>
      <dc:date>2019-12-12T08:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9198056#M69129</link>
      <description>&lt;P&gt;I'm using 3.5&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 08:51:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9198056#M69129</guid>
      <dc:creator>Dev_rim</dc:creator>
      <dc:date>2019-12-12T08:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9198545#M69130</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;gt; Can someone please make a small test add-in, trow an exception and confirm that he also doesn't get the error dialog?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I do not confirm your behaviour! I got the error dialog.&lt;BR /&gt;&lt;BR /&gt;Could you please make a simple test add-in, throw an exception which is not shown and attach the addin project here? Or maybe just the AddInServer.(vb | cs) file, if you do all the work in there.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 13:16:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9198545#M69130</guid>
      <dc:creator>CattabianiI</dc:creator>
      <dc:date>2019-12-12T13:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9200469#M69131</link>
      <description>&lt;P&gt;Hey I made a small add-in with only a form and two buttons.&lt;/P&gt;&lt;P&gt;Behind the buttons one exception without try and the second button one exception with the try.&lt;/P&gt;&lt;P&gt;This add-in works on my system too and gives me the error dialog.&lt;/P&gt;&lt;P&gt;There must be something in my other add-in that prevents this.&lt;/P&gt;&lt;P&gt;Thanks for testing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 08:31:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9200469#M69131</guid>
      <dc:creator>AJK2010</dc:creator>
      <dc:date>2019-12-13T08:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9200496#M69132</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;gt; There must be something in my other add-in that prevents this.&lt;BR /&gt;As suspected &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;If you can really simplify your addin and still reproduce the issue, share it here so we\I could take a look.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In any case please be sure to not raise an exception inside catch block!&lt;BR /&gt;I hope you do not have anymore lines like these:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;  Catch e As Exception
      If oSheetMetalCompDef.HasFlatPattern = True Then&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 08:40:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9200496#M69132</guid>
      <dc:creator>CattabianiI</dc:creator>
      <dc:date>2019-12-13T08:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9200502#M69133</link>
      <description>&lt;P&gt;&lt;SPAN&gt;EDIT:&lt;BR /&gt;&amp;gt;&amp;nbsp;In any case please be sure to not raise an exception inside catch block!&lt;BR /&gt;&lt;EM&gt;Why?&lt;/EM&gt;&lt;BR /&gt;Because if there isn't an outer catch no one will ever catch and prompt you that exception anymore!&lt;BR /&gt;And if you have object to close or selection in progress no one will ever close or stop them and maybe Inventor freezes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or it would be great if you could just reproduce the issue in an iLogic rule.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 09:12:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9200502#M69133</guid>
      <dc:creator>CattabianiI</dc:creator>
      <dc:date>2019-12-13T09:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9261954#M69134</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I have succeeded in reproducing the problem.&lt;/P&gt;&lt;P&gt;I made a small add-in with a form with two buttons.&lt;/P&gt;&lt;P&gt;When I throw an exception from a sub runned by a button on the form than the exception is handled as expected.&lt;/P&gt;&lt;P&gt;When I throw an exception in the code before I show the form, there is no error and inventor does nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Module Module1
    Dim NewFrmTest As FrmTest
    Dim NewFrmTest2 As FrmTest
    Public Sub initFormtest() 'run with button1
        NewFrmTest = New FrmTest
        NewFrmTest.ShowDialog()
    End Sub

    Public Sub initFormtest2() 'run with button2

        'run some code before showing the dialog
        'and some Exception occurred
        Throw New Exception("Test Error Handling1") 'Inventor just stops the code, and there is nothing happening
        NewFrmTest2 = New FrmTest
        NewFrmTest2.ShowDialog()
    End Sub

    Public Sub Test1() 'run with button1 on Frmtest
        Throw New Exception("Test Error Handling2") 'Exception is handled like expected with an error window
    End Sub

    Public Sub Test2() 'run with button2 on Frmtest
        Try
            Throw New Exception("Test Error Handling With Try") 'Exception is handled by the try
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Sub

End Module&lt;/PRE&gt;&lt;P&gt;In the attachment you find my vb project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is one problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other problem is that with my code I save the inventor dwg as DXF.&lt;/P&gt;&lt;P&gt;Sometimes inventor just hangs while saving the DXF, there is no error.&lt;/P&gt;&lt;P&gt;We just have to close inventor with task-manager.&lt;/P&gt;&lt;P&gt;When we restart inventor saving the dxf from the same file just works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 15:23:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9261954#M69134</guid>
      <dc:creator>AJK2010</dc:creator>
      <dc:date>2020-01-20T15:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: No error message from add-in</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9262202#M69135</link>
      <description>&lt;P&gt;Short answer: add always try catch in OnExecute event handler, and in any event handler as a general rule; and google how bad is raising an exception in .NET event handler.&lt;BR /&gt;&lt;BR /&gt;Some other things:&lt;/P&gt;&lt;BLOCKQUOTE&gt;When i make a small windows program and i throw an exception without the try catch, I get an error dialogbox.&lt;/BLOCKQUOTE&gt;&lt;P&gt;That's very not true, if no one catch your exception the program crash (create a one minute console application). What you're talking about is raising an exception inside a form and is what you do in Test1 method, the exception is shown because in &lt;A href="https://referencesource.microsoft.com/#system.windows.forms/winforms/Managed/System/WinForms/NativeWindow.cs,661" target="_blank" rel="noopener"&gt;NativeWindow.cs&lt;/A&gt;&amp;nbsp;there is a try catch.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I don't know &lt;STRONG&gt;if&lt;/STRONG&gt; and what has changed since Inventor 2018, in any case this wouldn't be a bug: it's up to you to manage the exception in event handler.&lt;BR /&gt;&lt;BR /&gt;Please add try catch (AND do not raise an exception in catch block&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;) and then ask here on the forum for unknown or unwanted exception/behavior.&lt;BR /&gt;&lt;BR /&gt;About the other problem: first of all try to export thru UI, then check on google because is a quite popular issue and eventually post here or on the main Inventor forum your particular problem.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 16:46:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/no-error-message-from-add-in/m-p/9262202#M69135</guid>
      <dc:creator>CattabianiI</dc:creator>
      <dc:date>2020-01-20T16:46:49Z</dc:date>
    </item>
  </channel>
</rss>

