<?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: calling InvokeLisp from palette is crashing in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/calling-invokelisp-from-palette-is-crashing/m-p/5600495#M40373</link>
    <description>&lt;P&gt;I have been testing to see if there is a pattern to the crashing, and there is.&lt;/P&gt;&lt;P&gt;My lisp function draws circles, using entmake.&lt;/P&gt;&lt;P&gt;If I do an "erase" "all" by hand on command line&amp;nbsp;to clear the circles, the next call to draw the circles fails, right at the first (entmake ...) function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that the postcommand I had seems to make no difference, those are irrelevent I think.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So somehow the database is not liking the entmake call, even though it worked seconds earlier.&lt;/P&gt;&lt;P&gt;There must be some issue with the database not being ready for write.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is an elock violation. I'll simplify the entmake and see if any dxf codes are making it angry.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2015 22:10:55 GMT</pubDate>
    <dc:creator>JamesMaeding</dc:creator>
    <dc:date>2015-04-20T22:10:55Z</dc:date>
    <item>
      <title>calling InvokeLisp from palette is crashing</title>
      <link>https://forums.autodesk.com/t5/net-forum/calling-invokelisp-from-palette-is-crashing/m-p/5600333#M40372</link>
      <description>&lt;P&gt;I have a palette with a button to run a lisp that draws a bunch of circles.&lt;/P&gt;&lt;P&gt;The lisp is run with T Tanzillos InvokeLisp, and runs fine from other situations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering, normally I lock the document when running stuff (synchronously) from a modelss dialog.&lt;/P&gt;&lt;P&gt;When I use a lisp though, there is no document locking mechanism.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am doing this in my button callback:&lt;/P&gt;&lt;PRE&gt;Autodesk.AutoCAD.Internal.Utils.PostCommandPrompt();
                    ResultBuffer ret = HALispVars.InvokeLisp(args, ref stat);
                    Autodesk.AutoCAD.Internal.Utils.PostCommandPrompt();&lt;/PRE&gt;&lt;P&gt;What happens is the first run always works.&lt;/P&gt;&lt;P&gt;The second time I pick the button from the palette, I get an internal error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this something obvious I am missing? (Assume the lisp is not erroring, I checked that).&lt;/P&gt;&lt;P&gt;It seems like it has to be related to focus issues or db access as its only with the palette that I get the issue.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2015 20:07:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/calling-invokelisp-from-palette-is-crashing/m-p/5600333#M40372</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2015-04-20T20:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: calling InvokeLisp from palette is crashing</title>
      <link>https://forums.autodesk.com/t5/net-forum/calling-invokelisp-from-palette-is-crashing/m-p/5600495#M40373</link>
      <description>&lt;P&gt;I have been testing to see if there is a pattern to the crashing, and there is.&lt;/P&gt;&lt;P&gt;My lisp function draws circles, using entmake.&lt;/P&gt;&lt;P&gt;If I do an "erase" "all" by hand on command line&amp;nbsp;to clear the circles, the next call to draw the circles fails, right at the first (entmake ...) function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that the postcommand I had seems to make no difference, those are irrelevent I think.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So somehow the database is not liking the entmake call, even though it worked seconds earlier.&lt;/P&gt;&lt;P&gt;There must be some issue with the database not being ready for write.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is an elock violation. I'll simplify the entmake and see if any dxf codes are making it angry.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2015 22:10:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/calling-invokelisp-from-palette-is-crashing/m-p/5600495#M40373</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2015-04-20T22:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: calling InvokeLisp from palette is crashing</title>
      <link>https://forums.autodesk.com/t5/net-forum/calling-invokelisp-from-palette-is-crashing/m-p/5657119#M40374</link>
      <description>the eLockViolation means that you need to lock the database. Or maybe you left it lock from previous call.&lt;BR /&gt;&lt;BR /&gt;when calling from a modeless dialog you'll need to lock or send command to AutoCAD (which will be async)</description>
      <pubDate>Fri, 29 May 2015 18:51:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/calling-invokelisp-from-palette-is-crashing/m-p/5657119#M40374</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2015-05-29T18:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: calling InvokeLisp from palette is crashing</title>
      <link>https://forums.autodesk.com/t5/net-forum/calling-invokelisp-from-palette-is-crashing/m-p/5657558#M40375</link>
      <description>&lt;P&gt;hmm, this was resolved a while back. Locking was indeed the issue and solved it.&lt;/P&gt;
&lt;P&gt;I wonder where the posts went I thought were in this thread.&lt;/P&gt;
&lt;P&gt;Thx for finishing it out.&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2015 20:18:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/calling-invokelisp-from-palette-is-crashing/m-p/5657558#M40375</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2015-05-29T20:18:52Z</dc:date>
    </item>
  </channel>
</rss>

