<?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: How do I exit a Multiple Solution VB program? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-do-i-exit-a-multiple-solution-vb-program/m-p/1899864#M78892</link>
    <description>Thanks for your prompt reply. Perhaps what I should have asked is "How do I shut down AutoCAD without getting the following error:"&lt;BR /&gt;
&lt;BR /&gt;
"Windows has triggered a breakpoint in acad.exe. This may be due to a corruption of the heap, and indicate a bug in acad.exe or any of the dlls it has loaded."&lt;BR /&gt;
&lt;BR /&gt;
It would appear to me that I need to have something after&lt;BR /&gt;
&lt;BR /&gt;
ThisDrawing.Application.Quit&lt;BR /&gt;
&lt;BR /&gt;
so that AutoCAD shuts down without Windows flagging an error, but I don't know what. I tried application.exit, but that didn't work.</description>
    <pubDate>Mon, 26 Feb 2007 12:01:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-02-26T12:01:59Z</dc:date>
    <item>
      <title>How do I exit a Multiple Solution VB program?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-do-i-exit-a-multiple-solution-vb-program/m-p/1899862#M78890</link>
      <description>I have a multiple solution VB 2005 program that uses the ActiveX/COM interface in AutoCAD 2007. Everything works as expected, except that I don't know how to gracefully exit the VB program after everything is finished. Here is a copy of the program that I am running:&lt;BR /&gt;
&lt;BR /&gt;
  &amp;gt;CommandMethod("Run", CommandFlags.Session)&amp;gt; _&lt;BR /&gt;
  Public Sub Run()&lt;BR /&gt;
    CreateDrawing()&lt;BR /&gt;
    ThisDrawing.Close&lt;BR /&gt;
    ThisDrawing.Application.Quit&lt;BR /&gt;
    ' How do I exit the VB program after this?&lt;BR /&gt;
  End Sub&lt;BR /&gt;
&lt;BR /&gt;
Can somebody please tell me what I need to do to gracefully exit the VB program after everything has finished? I tried Application.Exit, but that doesn't work.</description>
      <pubDate>Sun, 25 Feb 2007 21:32:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-do-i-exit-a-multiple-solution-vb-program/m-p/1899862#M78890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-25T21:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exit a Multiple Solution VB program?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-do-i-exit-a-multiple-solution-vb-program/m-p/1899863#M78891</link>
      <description>What do you mean by 'exit' ?&lt;BR /&gt;
&lt;BR /&gt;
Your solution is loaded into AutoCAD, and you&lt;BR /&gt;
can't 'exit' it. &lt;BR /&gt;
&lt;BR /&gt;
It will remaind loaded until AutoCAD shuts down.&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 2004/2005/2006/2007&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;RAUL aguilar=""&gt; wrote in message news:5499492@discussion.autodesk.com...&lt;BR /&gt;
I have a multiple solution VB 2005 program that uses the ActiveX/COM interface in AutoCAD 2007. Everything works as expected, except that I don't know how to gracefully exit the VB program after everything is finished. Here is a copy of the program that I am running:&lt;BR /&gt;
&lt;BR /&gt;
  &amp;gt;CommandMethod("Run", CommandFlags.Session)&amp;gt; _&lt;BR /&gt;
  Public Sub Run()&lt;BR /&gt;
    CreateDrawing()&lt;BR /&gt;
    ThisDrawing.Close&lt;BR /&gt;
    ThisDrawing.Application.Quit&lt;BR /&gt;
    ' How do I exit the VB program after this?&lt;BR /&gt;
  End Sub&lt;BR /&gt;
&lt;BR /&gt;
Can somebody please tell me what I need to do to gracefully exit the VB program after everything has finished? I tried Application.Exit, but that doesn't work.&lt;/RAUL&gt;</description>
      <pubDate>Mon, 26 Feb 2007 03:16:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-do-i-exit-a-multiple-solution-vb-program/m-p/1899863#M78891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-26T03:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exit a Multiple Solution VB program?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-do-i-exit-a-multiple-solution-vb-program/m-p/1899864#M78892</link>
      <description>Thanks for your prompt reply. Perhaps what I should have asked is "How do I shut down AutoCAD without getting the following error:"&lt;BR /&gt;
&lt;BR /&gt;
"Windows has triggered a breakpoint in acad.exe. This may be due to a corruption of the heap, and indicate a bug in acad.exe or any of the dlls it has loaded."&lt;BR /&gt;
&lt;BR /&gt;
It would appear to me that I need to have something after&lt;BR /&gt;
&lt;BR /&gt;
ThisDrawing.Application.Quit&lt;BR /&gt;
&lt;BR /&gt;
so that AutoCAD shuts down without Windows flagging an error, but I don't know what. I tried application.exit, but that didn't work.</description>
      <pubDate>Mon, 26 Feb 2007 12:01:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-do-i-exit-a-multiple-solution-vb-program/m-p/1899864#M78892</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-26T12:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exit a Multiple Solution VB program?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-do-i-exit-a-multiple-solution-vb-program/m-p/1899865#M78893</link>
      <description>Tony:&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help. I realize now what I was doing wrong. I was invoking AutoCAD from within Visual Studio, then I would quit AutoCAD, but Visual Studio was still in the picture. I guess what I was trying to find out is how to exit Visual Studio after exiting AutoCAD. Anyway, if I load the dll independently from Visual Studio everything works as expected, so that is what I'll do from now on.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again for your help.</description>
      <pubDate>Mon, 26 Feb 2007 12:31:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-do-i-exit-a-multiple-solution-vb-program/m-p/1899865#M78893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-26T12:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exit a Multiple Solution VB program?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-do-i-exit-a-multiple-solution-vb-program/m-p/1899866#M78894</link>
      <description>Sorry, I haven't tried to quit AutoCAD from&lt;BR /&gt;
an external client, so I have no idea why its&lt;BR /&gt;
failing like that.&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 2004/2005/2006/2007&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;RAUL aguilar=""&gt; wrote in message news:5499829@discussion.autodesk.com...&lt;BR /&gt;
Thanks for your prompt reply. Perhaps what I should have asked is "How do I shut down AutoCAD without getting the following error:"&lt;BR /&gt;
&lt;BR /&gt;
"Windows has triggered a breakpoint in acad.exe. This may be due to a corruption of the heap, and indicate a bug in acad.exe or any of the dlls it has loaded."&lt;BR /&gt;
&lt;BR /&gt;
It would appear to me that I need to have something after&lt;BR /&gt;
&lt;BR /&gt;
ThisDrawing.Application.Quit&lt;BR /&gt;
&lt;BR /&gt;
so that AutoCAD shuts down without Windows flagging an error, but I don't know what. I tried application.exit, but that didn't work.&lt;/RAUL&gt;</description>
      <pubDate>Mon, 26 Feb 2007 12:56:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-do-i-exit-a-multiple-solution-vb-program/m-p/1899866#M78894</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-26T12:56:45Z</dc:date>
    </item>
  </channel>
</rss>

