here is a link to a youtube video demonstrating the problem:
https://youtu.be/SOYYpRZV2Ck
It appears the problem is more tricky than I first thought it to be.
You can see at beginning of the video me trying to trigger the bug and it doesn't.
However, after I run that other program, and receive an error from it, after that the bug happens.
However, even for that, the behavior of the bug changed after I started recording it with Camtasia. I don't know if recording somehow affected its behavior, but even after restarting the computer after the recording, the behavior stayed the same.
Before the idea was that when that bug triggered, it kept doing thing even I restarted Hollywood IDE. However, after I started the recording, it changed into becoming a one-time problem.
That after my program crashes, then the bug will trigger and crash Hollywood IDE only once. When I now restart Hollywood IDE, it doesnt trigger the bug again, until my program crashes first again.
I dont know what all kind of crashes cause this bug to become active, but the crash that happens in this program in this video is caused by this line:
If HaveItem(button.evttable, button.status) = True Then button.evttable[button.status](button.userdata)
point in this is that button.evttable doesnt exist, causing it to crash.
Idea is that I have this my_MakeButton command, where I am supposed to send this evttable, which is then saved to button.evttable.
However, idea is basically following:
Code: Select all
evttableTypedCorrectly = {stuff}
my_MakeButton(evttableTypedWrong)
and therefore evttableTypedWrong don't exist at all and it sends this non-existing evttable to button.evttable, which it tries to access later and crashes the program, which in turn causes the bug to become active.