Author Topic: Purposefully Cause Fatal Error with Lisp  (Read 4175 times)

0 Members and 1 Guest are viewing this topic.

Ben Clark

  • Newt
  • Posts: 94
Purposefully Cause Fatal Error with Lisp
« on: June 16, 2017, 04:42:13 PM »
What would be the best way to purposefully cause a fatal error every time using lisp?

:)

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2124
  • class keyThumper<T>:ILazy<T>
Re: Purposefully Cause Fatal Error with Lisp
« Reply #1 on: June 16, 2017, 05:09:10 PM »
If you want to hire me for a short time I'm sure I could produce something that would make you happy.



Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Purposefully Cause Fatal Error with Lisp
« Reply #2 on: June 16, 2017, 05:36:41 PM »
Logon as Greg.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

cmwade77

  • Swamp Rat
  • Posts: 1443
Re: Purposefully Cause Fatal Error with Lisp
« Reply #3 on: June 16, 2017, 07:22:49 PM »
Let Autodesk make your LISP routine for you.  :2funny:

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Purposefully Cause Fatal Error with Lisp
« Reply #4 on: June 16, 2017, 10:55:54 PM »
I write an error handler into my lisp commands that simulate a fatal error along with a random error code. This simulated error is fired at random if the program is not licensed.
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

ChrisCarlson

  • Guest
Re: Purposefully Cause Fatal Error with Lisp
« Reply #5 on: June 19, 2017, 08:36:36 AM »
What would be the best way to purposefully cause a fatal error every time using lisp?

:)

I'm not sure what your intentions are?

cmwade77

  • Swamp Rat
  • Posts: 1443
Re: Purposefully Cause Fatal Error with Lisp
« Reply #6 on: June 19, 2017, 12:53:23 PM »
I write an error handler into my lisp commands that simulate a fatal error along with a random error code. This simulated error is fired at random if the program is not licensed.
That is just mean, I like it, but it is mean.

Ben Clark

  • Newt
  • Posts: 94
Re: Purposefully Cause Fatal Error with Lisp
« Reply #7 on: June 19, 2017, 05:23:03 PM »
Master_Shake, I love ATHF. Also, my intentions are to prank my fellow employees :) I would make sure they didn't execute it and lose a ton of work though.

Keith: I like your style. How did you cause the fatal error?

tedg

  • Swamp Rat
  • Posts: 811
Re: Purposefully Cause Fatal Error with Lisp
« Reply #8 on: June 20, 2017, 08:02:24 AM »
Well you could just do a simple lisp that gives them the appearance (alert) of a fatal error,
something like this: (could be made nicer, more believable)
(also could add a -qsave and close option so it shuts them down)
(used "m" as command as most people use that as move in acad)
Code: [Select]

(defun c:m (/ ce ss)
   (setq ce (getvar "cmdecho"))
   (setvar "cmdecho" 1)
   (setq ss (ssget))
(alert "FATAL ERROR!!
YOU WILL LOSE ALL WORK
RECOVERY IS NOT POSSIBLE")
   (setvar "cmdecho" ce)
   (princ)
)
Windows 10 Pro 64bit, AutoCAD 2023, REVIT 2023

ronjonp

  • Needs a day job
  • Posts: 7526
Re: Purposefully Cause Fatal Error with Lisp
« Reply #9 on: June 20, 2017, 09:18:40 AM »
Master_Shake, I love ATHF. Also, my intentions are to prank my fellow employees :) I would make sure they didn't execute it and lose a ton of work though.

Keith: I like your style. How did you cause the fatal error?
You think that purposely causing a fatal error is a prank ... it's just rude IMO.  :?

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

ChrisCarlson

  • Guest
Re: Purposefully Cause Fatal Error with Lisp
« Reply #10 on: June 20, 2017, 10:47:26 AM »
Master_Shake, I love ATHF. Also, my intentions are to prank my fellow employees :) I would make sure they didn't execute it and lose a ton of work though.

Keith: I like your style. How did you cause the fatal error?

Yea, you'd be gone; pink slipped; "you're outta here!"; if you did that here. There are numerous ways to cause humor discussed in other threads.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Purposefully Cause Fatal Error with Lisp
« Reply #11 on: June 20, 2017, 04:31:42 PM »
Master_Shake, I love ATHF. Also, my intentions are to prank my fellow employees :) I would make sure they didn't execute it and lose a ton of work though.

Keith: I like your style. How did you cause the fatal error?

No error, just a faked dialog with a random error code. When it fires, it looks like the real deal, with the option to save the drawing. Once the document is saved, AutoCAD closes and the user must go back into AutoCAD.

In some blind tests, I found that after a couple of times, users didn't try it anymore. Something about saving a huge drawing, restarting AutoCAD and then re-opening the drawing made them quit trying to use it.

I guess, it isn't so much about telling people "This product isn't licensed" because they will continue to use it anyway because the vast majority of people could not care less. If you make then restart AutoCAD every time they try to use an unlicensed product, then they will a) license it b) stop using it c) something else that I don't care about.

To be fair, I never put it in any commercial software, only that which is given away under the premise that they MUST register it with me after a short while.
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

Ben Clark

  • Newt
  • Posts: 94
Re: Purposefully Cause Fatal Error with Lisp
« Reply #12 on: June 21, 2017, 05:52:38 PM »
tedg: I like your idea of a nicer version that fakes it, saves, and closes down. I think I'll do something similar.

Master_Shake: Where is here? It sounds like you work for a very bureaucratic company.

ronjonp

  • Needs a day job
  • Posts: 7526
Re: Purposefully Cause Fatal Error with Lisp
« Reply #13 on: June 21, 2017, 06:04:00 PM »
..

Master_Shake: Where is here? It sounds like you work for a very bureaucratic company.
Apparently you don't understand what you're asking for is not a prank...

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Purposefully Cause Fatal Error with Lisp
« Reply #14 on: June 21, 2017, 06:07:15 PM »
Master_Shake, I love ATHF. Also, my intentions are to prank my fellow employees :) I would make sure they didn't execute it and lose a ton of work though.

Keith: I like your style. How did you cause the fatal error?

Yea, you'd be gone; pink slipped; "you're outta here!"; if you did that here. There are numerous ways to cause humor discussed in other threads.

I once caused a coworker's drawings to have REDRUM on the screen whenever he issued certain commands in a particular order. Kinda like an easter egg. Nobody believed that it was happening because he couldn't reproduce it.

Oh what fun times!
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