Author Topic: AutoLisp Stack Overflow problem  (Read 2593 times)

0 Members and 1 Guest are viewing this topic.

vinnyg

  • Guest
AutoLisp Stack Overflow problem
« on: July 22, 2008, 03:50:51 PM »
Hi all,

I was testing about 10 lisp routines on one drawing and after loadin and running about 6 of
them (which worked correctly) I loaded and tried to run another one and got this message;

       Autolisp stack overflow - cancel -

I then proceeded to load and run 5 more and they loaded and worked fine. What I want to know is
it the problem with that one lisp or something more general??

thanks

vinny

JohnK

  • Administrator
  • Seagull
  • Posts: 10627
Re: AutoLisp Stack Overflow problem
« Reply #1 on: July 22, 2008, 04:19:02 PM »
Without more info; most likely that one lisp.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8695
  • AKA Daniel
Re: AutoLisp Stack Overflow problem
« Reply #2 on: July 22, 2008, 06:57:02 PM »
Usually, a stack overflow is caused by a recursive function. 

prexem

  • Guest
Re: AutoLisp Stack Overflow problem
« Reply #3 on: July 23, 2008, 06:32:34 PM »
Can you show these routines?.......
« Last Edit: July 23, 2008, 07:00:09 PM by prexem »

vinnyg

  • Guest
Re: AutoLisp Stack Overflow problem
« Reply #4 on: July 24, 2008, 10:11:23 AM »
This is the routine, however unfortunately, the routine that brought the 'Autocad stack overflow' message
is autocad protected, so I can't read the lisp routine. Maybe someone can convert it so it can be read?
Anyway, here it is.

thanks.

vinny

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: AutoLisp Stack Overflow problem
« Reply #5 on: July 24, 2008, 10:25:00 AM »
That file is no good
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

vinnyg

  • Guest
Re: AutoLisp Stack Overflow problem
« Reply #6 on: July 24, 2008, 10:33:20 AM »
That's interesting...thanks for looking

vinny

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: AutoLisp Stack Overflow problem
« Reply #7 on: July 24, 2008, 12:29:21 PM »
You posted a copy of the original lisp file and this is all it contained:
Quote
; AUTOMATICALLY COPIES LINES SPACED EVENLY BETWEEN 2 PICKED POINTS
AutoCAD PROTECTED LISP file
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

prexem

  • Guest
Re: AutoLisp Stack Overflow problem
« Reply #8 on: July 25, 2008, 07:05:10 PM »
This is the routine, however unfortunately, the routine that brought the 'Autocad stack overflow' message
is autocad protected, so I can't read the lisp routine. Maybe someone can convert it so it can be read?
Anyway, here it is.

thanks.

vinny
The code is absent into this file.