point.fAnimPos:SetValue( moho.frame, nil ) will crash Moho.
Obviously a bug in the script, but you had mentioned in another thread that you wanted to protect Moho from crashing on bad scripts.
Edit: This is in a tool script
Also, improperly trying to access functions can crash Moho in a tool script.
e.g.
LM.Beep() (instead of LM:Beep())
Script can crash moho
Moderators: Víctor Paredes, Belgarath, slowtiger
- Lost Marble
- Site Admin
- Posts: 2355
- Joined: Tue Aug 03, 2004 6:02 pm
- Location: Scotts Valley, California, USA
- Contact:
Yes, it is possible for a script to crash Moho. Lua itself is supposed to prevent crashing, but when you call Moho functions, you are basically calling C++ functions, so passing invalid data (in particular, invalid or NULL pointers) can cause a crash. It would be quite difficult to avoid these problems in all cases, but I'm not even sure if it's desireable. It would introduce a lot of parameter checking that would slow things down.