<?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: Updated printing program to AutoCAD 2013 from 2011, program now crashes in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3803808#M50875</link>
    <description>&lt;P&gt;Thank you for the response.&amp;nbsp; As I said, this program was/is currently working for AutoCAD 2011 with no problems.&amp;nbsp; These problems did not start until I updated it to AutoCAD 2013 and the new core stuff.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The timer is a System.Windows.Forms.Timer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested with the for loop.&amp;nbsp; I had it run through 4 drawings a few times.&amp;nbsp; Once the for loop finishes, AutoCAD completely shuts down and disappears.&amp;nbsp; It does that in both the debugger and when AutoCAD is run on its own.&amp;nbsp; I changed the program so that the loop is controlled by a button click.&amp;nbsp; I changed the loop to only do 2 drawings and it did fine the first time but crashed when I clicked the button a second time.&amp;nbsp; If I took the loop out and just had the button click do the "run_autocad" it crashed after the second drawing was printed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the debugger, it shows "A first chance exception of type 'System.NotImplementedException' occured and that is has excited with code 0 (0x0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2013 14:31:08 GMT</pubDate>
    <dc:creator>pjones3</dc:creator>
    <dc:date>2013-03-13T14:31:08Z</dc:date>
    <item>
      <title>Updated printing program to AutoCAD 2013 from 2011, program now crashes</title>
      <link>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3790511#M50869</link>
      <description>&lt;P&gt;We have a program that basically prints drawings to 11x17.&amp;nbsp; It worked perfectly in AutoCAD 2011.&amp;nbsp; I made the changes to how it opens the drawings as per the documentation for upgrading the program to 2013.&amp;nbsp; It works fine for the first two drawings but then AutoCAD just completely shuts down with no error message or anything.&amp;nbsp; I have tried to determine where the close happens by inserting messageboxes but have had no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some background on the program:&lt;/P&gt;&lt;P&gt;It is just a basic form with a timer.&amp;nbsp; When the timer reaches 0, it reads the drawing name from a file.&amp;nbsp; AutoCAD opens the drawing and prints it.&amp;nbsp; Then it closes the drawing, restets the timer and waits until it reaches 0.&amp;nbsp; SDI is set to 0 so closing the drawing should not affect it.&amp;nbsp; As I said, it has worked perfectly for years under 2011.&amp;nbsp; It is written in C#.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2013 16:58:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3790511#M50869</guid>
      <dc:creator>pjones3</dc:creator>
      <dc:date>2013-02-26T16:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Updated printing program to AutoCAD 2013 from 2011, program now crashes</title>
      <link>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3791677#M50870</link>
      <description>&lt;P&gt;Nevermind.&amp;nbsp; It seems that AutoCAD 2013 did not like running inside Visual Studio Express.&amp;nbsp; Which is a shame.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 18:34:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3791677#M50870</guid>
      <dc:creator>pjones3</dc:creator>
      <dc:date>2013-02-27T18:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Updated printing program to AutoCAD 2013 from 2011, program now crashes</title>
      <link>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3791710#M50871</link>
      <description>&lt;P&gt;Well, I spoke to soon.&amp;nbsp; That worked great on my 64bit machine but when I recompiled it, after changing the references, for my 32 bit machine it is still crashing after just 2 drawings.&amp;nbsp; Anyone have any thoughts? (besideds just use the 64 bit because my plot servers are 32 bit)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 19:06:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3791710#M50871</guid>
      <dc:creator>pjones3</dc:creator>
      <dc:date>2013-02-27T19:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Updated printing program to AutoCAD 2013 from 2011, program now crashes</title>
      <link>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3802506#M50872</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the delay.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is hard to say what might be causing it to crash after two drawings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you still have the issue, can you please provide a trimmed down version of your sample project to reproduce the issue ?&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, 12 Mar 2013 11:56:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3802506#M50872</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2013-03-12T11:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Updated printing program to AutoCAD 2013 from 2011, program now crashes</title>
      <link>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3802552#M50873</link>
      <description>&lt;P&gt;Thanks for the reply.&amp;nbsp; The routine uses the simple plot from through-th-interface (&lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/2007/09/driving-a-basic.html)"&gt;http://through-the-interface.typepad.com/through_the_interface/2007/09/driving-a-basic.html)&lt;/A&gt; with a few changes.&amp;nbsp; I can provide the whole thing if that will help but I have attached the 2 main parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason it does not like me attaching either the .cs files or a zip file so I printed them to PDF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 12:45:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3802552#M50873</guid>
      <dc:creator>pjones3</dc:creator>
      <dc:date>2013-03-12T12:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Updated printing program to AutoCAD 2013 from 2011, program now crashes</title>
      <link>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3803601#M50874</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was reviewing the code that you shared. I couldnt&amp;nbsp;find any obvious issues, but here are few things to check :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Calling the "run_autocad()" that command inside the "Timer_Loop" can be problematic if you are not using the "System.Windows.Forms.Timer". Can you please try using a hidden form as explained in this blog post ?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/06/setting-up-a-timer-in-a-net-sample-that-uses-the-autocad-net-api.html" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2012/06/setting-up-a-timer-in-a-net-sample-that-uses-the-autocad-net-api.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Can you please try looping through a set of drawings in a "for" loop instead without the use of the timer and then call the "SimplePlot" method to do the plotting ? Does it crash after looping through two drawings ? This can help identify whether the issue is related with the timer or something to do with the actual plotting itself.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2013 11:30:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3803601#M50874</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2013-03-13T11:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Updated printing program to AutoCAD 2013 from 2011, program now crashes</title>
      <link>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3803808#M50875</link>
      <description>&lt;P&gt;Thank you for the response.&amp;nbsp; As I said, this program was/is currently working for AutoCAD 2011 with no problems.&amp;nbsp; These problems did not start until I updated it to AutoCAD 2013 and the new core stuff.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The timer is a System.Windows.Forms.Timer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested with the for loop.&amp;nbsp; I had it run through 4 drawings a few times.&amp;nbsp; Once the for loop finishes, AutoCAD completely shuts down and disappears.&amp;nbsp; It does that in both the debugger and when AutoCAD is run on its own.&amp;nbsp; I changed the program so that the loop is controlled by a button click.&amp;nbsp; I changed the loop to only do 2 drawings and it did fine the first time but crashed when I clicked the button a second time.&amp;nbsp; If I took the loop out and just had the button click do the "run_autocad" it crashed after the second drawing was printed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the debugger, it shows "A first chance exception of type 'System.NotImplementedException' occured and that is has excited with code 0 (0x0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2013 14:31:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3803808#M50875</guid>
      <dc:creator>pjones3</dc:creator>
      <dc:date>2013-03-13T14:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Updated printing program to AutoCAD 2013 from 2011, program now crashes</title>
      <link>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3804458#M50876</link>
      <description>&lt;P&gt;I am sorry, it is difficult to say what might be causing it without reproducing it on my system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If possible, can you please share a non-confidential buildable sample project for me to try and reproduce the same behavior ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 04:52:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3804458#M50876</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2013-03-14T04:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Updated printing program to AutoCAD 2013 from 2011, program now crashes</title>
      <link>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3809792#M50877</link>
      <description>&lt;P&gt;Sorry it took me so long to get back to you.&amp;nbsp; There isn't anything confidential it is just very tailored for the way we work.&amp;nbsp; I will see what I can do and gladly upload it.&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2013 11:05:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updated-printing-program-to-autocad-2013-from-2011-program-now/m-p/3809792#M50877</guid>
      <dc:creator>pjones3</dc:creator>
      <dc:date>2013-03-20T11:05:48Z</dc:date>
    </item>
  </channel>
</rss>

