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

0 Members and 1 Guest are viewing this topic.

barnjart42

  • Mosquito
  • Posts: 10
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

  • SuperMod
  • Swamp Rat
  • Posts: 890
  • 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

Sometimes the question is more important than the answer.

MP

  • Seagull
  • Posts: 16910
  • brevity != aggression
Re: Purposefully Cause Fatal Error with Lisp
« Reply #2 on: June 16, 2017, 05:36:41 pm »
Logon as Greg.
\|// Set goal. Experiment tirelessly until
|oo| practice has become expertise.  Loop.
|- | LinkedIn | Dropbox | About

cmwade77

  • Swamp Rat
  • Posts: 998
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: 16603
  • 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

Master_Shake

  • Swamp Rat
  • Posts: 1180
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: 998
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.

barnjart42

  • Mosquito
  • Posts: 10
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: 770
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 7 Pro 64bit, AutoCAD 2017, REVIT 2017, Inventor Professional 2015

ronjonp

  • Needs a day job
  • Posts: 6216
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 10 x64 - AutoCAD 2017

Custom Build PC

Master_Shake

  • Swamp Rat
  • Posts: 1180
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: 16603
  • 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

barnjart42

  • Mosquito
  • Posts: 10
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: 6216
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 10 x64 - AutoCAD 2017

Custom Build PC

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16603
  • 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