This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
LDDestroier's profile picture

LDDFM BETA crashes when clicking 'close'

Started by LDDestroier, 20 September 2016 - 02:49 PM
LDDestroier #1
Posted 20 September 2016 - 04:49 PM
I'm trying to add a 'close' button to my file manager, but when I click on it, it crashes with:

window:179: bad argument: string expected, got nil

Then it shuts down after a button press. What's weird is that there's nothing at the part of my program where it detects the click that would warrant that error (to my understanding), as that error is usually for entering an invalid argument for term.setBackgroundColor().

Here's the link for the paste. The line that detects the button press on 'close' is line 223. Please help!
Edited on 20 September 2016 - 02:49 PM
Lupus590 #2
Posted 20 September 2016 - 04:53 PM
run without multishell? see if you get a more helpful error?
LDDestroier #3
Posted 20 September 2016 - 06:28 PM
I did that, and it gave me an error for line 149. That cleared it up. Thanks.
Lyqyd #4
Posted 20 September 2016 - 07:28 PM
Thanks for the report, but we do not generally close threads in Ask a Pro.
LDDestroier #5
Posted 20 September 2016 - 07:31 PM
Oh, okay. I reported this because the problem was very situational, and for a paste that people aren't expected to download from.