"Bad refs" error in output screen, MaxGUI

BlitzMax Forums/BlitzMax Programming/"Bad refs" error in output screen, MaxGUI

Ok, through lengthy use of DebugStop, I've found that the error is generated when at the line of code that says

ShowGadget MainTabberPanel[0]

Can't seem to find out why, though.