TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Jeff_M on January 04, 2006, 07:37:44 PM

Title: Do not try this at home......
Post by: Jeff_M on January 04, 2006, 07:37:44 PM
I am an untrained professional  :evil:  :lmao:

So I just learned a very important lesson. One that I should've learned somewhere in my past, I'm sure. :realmad:

The other day I saw a neat little challenge over on the Adesk LDD newsgroup and found a "messy" solution, as it was called by the person who origianlly asked about it. I didn't think much of it at the time as it was just a fun little excercise. Well today I had a bit of free time so I thought I'd try to 'optomize' the routine to clean it up........

So my lesson is this, don't EVER, EVER, EVER, try a new chunk of code while:
1. You are working in a real world drawing
2. Said real world drawing has a HUGE database of the objects you are testing
3. You are expecting a call to be able to continue what you were doing before you had said free time........

Prior to my 'optimizations' this code ran in the same drawing in about 5 seconds.  :kewl:
Well, as I type this it has now been running for 37 minutes. I've checked and double-checked to make sure that it cannot get into an infinite loop so that is not an issue  :lmao: :cry:

I think it's time for a beer........
Title: Re: Do not try this at home......
Post by: Kerry on January 04, 2006, 07:43:49 PM


sometimes I wonder about parallel universes ... hehehehehe ..


extreme perhaps, but I'd once thought about disabling the VLIDE command except in my coding profile.
Title: Re: Do not try this at home......
Post by: LE on January 04, 2006, 07:50:23 PM
Jeff;

Start writting 100 pages:

Quote
I am not going to this anymore....

 :evil:
Title: Re: Do not try this at home......
Post by: CAB on January 04, 2006, 08:48:37 PM
The last one for me was two weeks ago when a DCL file hung & the only way out was
Ctrl+Alt+Del but is was a test drawing. he he he  :evil:
Title: Re: Do not try this at home......
Post by: JohnK on January 04, 2006, 09:59:04 PM
Jeff;

Start writting 100 pages:

Quote
I am not going to this anymore....

 :evil:

May we use lisp? *lol*