TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Ben Clark on June 16, 2017, 04:42:13 PM
-
What would be the best way to purposefully cause a fatal error every time using lisp?
:)
-
If you want to hire me for a short time I'm sure I could produce something that would make you happy.
-
Logon as Greg.
-
Let Autodesk make your LISP routine for you. :2funny:
-
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.
-
What would be the best way to purposefully cause a fatal error every time using lisp?
:)
I'm not sure what your intentions are?
-
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.
-
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?
-
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)
(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)
)
-
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. :?
-
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.
-
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.
-
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.
-
..
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...
-
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!
-
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. :?
Not just rude, also irresponsible and job threatening.
-
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.
That is not a prank, a prank is issuing a SAPI call when an AutoCAD command is initiated. A prank is occasionally changing a users model space background and then changing it back. What you are proposing is just wrong.
-
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.
That is not a prank, a prank is issuing a SAPI call when an AutoCAD command is initiated. A prank is occasionally changing a users model space background and then changing it back. What you are proposing is just wrong.
That's what I was saying... my suggestion just "appears" to have an error, does nothing to anything.
I think he gets it, what hes trying to do is just make them panic for a second, similar to all other suggestions like it mentioned in other threads.
Maybe I'm wrong.
I agree to make the program actually crash would be bad.
-
Master_Shake and kdub: not here to start any arguments. Calm down.
It's not job threatening because I own my own CAD business and I only employ 4 people. I'm trying to have a little fun. The lisp I'm writing will only cause an alert and then save and close the drawings.
Furthermore, most users save their drawings frequently because AutoCAD fatal errors at least once a day anyway. So even if I did execute my original idea of causing a fatal error, the world would continue to spin. Keith gets it; these things are hilarious :-D