Moon Wizard
April 24th, 2009, 02:27
Recently, I've added a close button in the upper right corner of all windows in my rulesets to allow windows to be quickly closed similar to standard Windows. The button code is simple:
function onClickDown(button, x, y)
if button == 1 then
return true;
end
end
function onClickRelease(button, x, y)
if button == 1 then
window.close();
end
end
While the feature appears to work great at first, many of my testers report that after closing anywhere from 3-10 windows using the close button, FG will crash. I have not been able to reproduce on my machine, but my machines tend to be fairly high spec.
Any ideas why window.close() would cause FG to hard crash?
Thanks,
JPG
function onClickDown(button, x, y)
if button == 1 then
return true;
end
end
function onClickRelease(button, x, y)
if button == 1 then
window.close();
end
end
While the feature appears to work great at first, many of my testers report that after closing anywhere from 3-10 windows using the close button, FG will crash. I have not been able to reproduce on my machine, but my machines tend to be fairly high spec.
Any ideas why window.close() would cause FG to hard crash?
Thanks,
JPG