<?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 Problems with ResultBuffer in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/problems-with-resultbuffer/m-p/5793404#M38816</link>
    <description>&lt;P&gt;I have had some interesting problems sending data from Lisp to .NET applications with ResultBuffers, so I decided to be a simple test:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the following powerfull and complex application:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[LispFunction("Bounce")]
public static ResultBuffer Bounce(ResultBuffer args)
{
   return args;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I send it certain lists of integers from AutoCAD's Lisp Console, funny things happen:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;_$ (Bounce '(2001 0 0))
((2001.0 0.0 0.0))


_$ (Bounce '(2002 0 0))
((2002.0 0.0 0.0))


_$ (Bounce '(2003 0 0))
((2003.0 0.0 0.0))


...


_$ (Bounce '(2009 0 0))
((2009.0 0.0 0.0))&lt;/PRE&gt;&lt;P&gt;So far so good...well, kinda, except it is turning a list of three integers into a 3D Point, but this is a known issue. It get's better:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;_$ (Bounce '(2010 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2011 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2012 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2013 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2014 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2015 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2016 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2017 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2018 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2019 0 0))
; error: LsAdsInvoke Internal Error&lt;/PRE&gt;&lt;P&gt;It get's funnier still:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;_$ (Bounce '(3010 0 0))
(nil)

_$ (Bounce '(3011 0 0))
(nil)

_$ (Bounce '(3012 0 0))
(nil)

_$ (Bounce '(3013 0 0))
(nil)

_$ (Bounce '(3014 0 0))
(nil)

_$ (Bounce '(3015 0 0))
(nil)

_$ (Bounce '(3016 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(3017 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(3018 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(3019 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(3020 0 0))
((3020.0 0.0 0.0))&lt;/PRE&gt;&lt;P&gt;And finally:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;_$ (Bounce '(3010 1 0))
; error: Exception occurred: 0xC0000005 (Access Violation)
; warning: unwind skipped on exception
; error: Exception occurred: 0xC0000005 (Access Violation)
; error: Exception occurred: 0xC0000005 (Access Violation)
; error: Exception occurred: 0xC0000005 (Access Violation)

_$ (Bounce '(3011 1 0))
; error: Exception occurred: 0xC0000005 (Access Violation)
; warning: unwind skipped on exception
; error: Exception occurred: 0xC0000005 (Access Violation)
; error: Exception occurred: 0xC0000005 (Access Violation)
; error: Exception occurred: 0xC0000005 (Access Violation)

_$ (Bounce '(3012 1 0))
; error: Exception occurred: 0xC0000005 (Access Violation)
; warning: unwind skipped on exception
; error: Exception occurred: 0xC0000005 (Access Violation)
; error: Exception occurred: 0xC0000005 (Access Violation)
; error: Exception occurred: 0xC0000005 (Access Violation)&lt;/PRE&gt;&lt;P&gt;Does anyone know what is causing this and how to get around it?&lt;/P&gt;</description>
    <pubDate>Fri, 28 Aug 2015 16:06:00 GMT</pubDate>
    <dc:creator>ZoltanFerenczy</dc:creator>
    <dc:date>2015-08-28T16:06:00Z</dc:date>
    <item>
      <title>Problems with ResultBuffer</title>
      <link>https://forums.autodesk.com/t5/net-forum/problems-with-resultbuffer/m-p/5793404#M38816</link>
      <description>&lt;P&gt;I have had some interesting problems sending data from Lisp to .NET applications with ResultBuffers, so I decided to be a simple test:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the following powerfull and complex application:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[LispFunction("Bounce")]
public static ResultBuffer Bounce(ResultBuffer args)
{
   return args;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I send it certain lists of integers from AutoCAD's Lisp Console, funny things happen:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;_$ (Bounce '(2001 0 0))
((2001.0 0.0 0.0))


_$ (Bounce '(2002 0 0))
((2002.0 0.0 0.0))


_$ (Bounce '(2003 0 0))
((2003.0 0.0 0.0))


...


_$ (Bounce '(2009 0 0))
((2009.0 0.0 0.0))&lt;/PRE&gt;&lt;P&gt;So far so good...well, kinda, except it is turning a list of three integers into a 3D Point, but this is a known issue. It get's better:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;_$ (Bounce '(2010 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2011 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2012 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2013 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2014 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2015 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2016 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2017 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2018 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(2019 0 0))
; error: LsAdsInvoke Internal Error&lt;/PRE&gt;&lt;P&gt;It get's funnier still:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;_$ (Bounce '(3010 0 0))
(nil)

_$ (Bounce '(3011 0 0))
(nil)

_$ (Bounce '(3012 0 0))
(nil)

_$ (Bounce '(3013 0 0))
(nil)

_$ (Bounce '(3014 0 0))
(nil)

_$ (Bounce '(3015 0 0))
(nil)

_$ (Bounce '(3016 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(3017 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(3018 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(3019 0 0))
; error: LsAdsInvoke Internal Error

_$ (Bounce '(3020 0 0))
((3020.0 0.0 0.0))&lt;/PRE&gt;&lt;P&gt;And finally:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;_$ (Bounce '(3010 1 0))
; error: Exception occurred: 0xC0000005 (Access Violation)
; warning: unwind skipped on exception
; error: Exception occurred: 0xC0000005 (Access Violation)
; error: Exception occurred: 0xC0000005 (Access Violation)
; error: Exception occurred: 0xC0000005 (Access Violation)

_$ (Bounce '(3011 1 0))
; error: Exception occurred: 0xC0000005 (Access Violation)
; warning: unwind skipped on exception
; error: Exception occurred: 0xC0000005 (Access Violation)
; error: Exception occurred: 0xC0000005 (Access Violation)
; error: Exception occurred: 0xC0000005 (Access Violation)

_$ (Bounce '(3012 1 0))
; error: Exception occurred: 0xC0000005 (Access Violation)
; warning: unwind skipped on exception
; error: Exception occurred: 0xC0000005 (Access Violation)
; error: Exception occurred: 0xC0000005 (Access Violation)
; error: Exception occurred: 0xC0000005 (Access Violation)&lt;/PRE&gt;&lt;P&gt;Does anyone know what is causing this and how to get around it?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2015 16:06:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problems-with-resultbuffer/m-p/5793404#M38816</guid>
      <dc:creator>ZoltanFerenczy</dc:creator>
      <dc:date>2015-08-28T16:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with ResultBuffer</title>
      <link>https://forums.autodesk.com/t5/net-forum/problems-with-resultbuffer/m-p/5793430#M38817</link>
      <description>&lt;P&gt;Maybe check the values against DXF codes?&amp;nbsp; There is a known issue when it receives certain value/patterns it will attempt to process them as DXF code lists just as it does with a list of three reals as a point.&amp;nbsp; Rather than bouncing&amp;nbsp;the ResBuff contents directly back, I'd recommend stepping through the code and inspecting the values.&amp;nbsp; Then construct a new ResBuff, fill it with appropriate value types and values, and see how that gets passed back.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2015 16:22:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problems-with-resultbuffer/m-p/5793430#M38817</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2015-08-28T16:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with ResultBuffer</title>
      <link>https://forums.autodesk.com/t5/net-forum/problems-with-resultbuffer/m-p/5793438#M38818</link>
      <description>&lt;P&gt;There are no DXF codes above 1000 - 1071, which are the Extended Entity Data codes. I can't step through the code, becuase the crash happens even before the ResultBuffer makes it to the Bounce function.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2015 16:26:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problems-with-resultbuffer/m-p/5793438#M38818</guid>
      <dc:creator>ZoltanFerenczy</dc:creator>
      <dc:date>2015-08-28T16:26:05Z</dc:date>
    </item>
  </channel>
</rss>

