Hang in Direct Command
SpecBas will hang after about 15-20 min's but only when I am using the direct command window.
so running and editing is fine but after a while when I use the direct command window it will freeze and I have to restart Specbas. luckily it stores the listing but sometimes it will freeze on a return press and Specbas will start up blank....Panic....when did I last save :)
It's an issue but I don't know why it's doing it , I can be editing a line or just checking a variable etc but so far it has only crashed when in direct command after about 20 mins.....
p.s. this has only started about a month ago.
It's a crash due to a race condition, but if I can't reproduce it then I can't fix it. I'm watching out for it and will fix it as soon as I can.
Is it during general editing, or only after pressing ENTER?
both
Thanks, I'll look out for it.
I may have discovered the reason for this - but no fix as yet.
Cool...did it stop on you?
I found that, during the keyboard rewrite, if we don't wait for vsync during the keyboard scanning loop, it will crash. This seems to be a speed thing - my PC is insanely fast so it doesn't crash for me when vsync is in, but slower PCs might.
So I know where to look :)
Possibly fixed, could very well be some threads trying to access the same resource at the same time. Testing needed :)
will do , I'll give it a blast at the weekend.
having a go and still locking up after about 40mins , I was deleting code in the comand window.
OK, I think this is to do with the undo buffer getting full (it should auto-extend as necessary) so I'm adding limits and resets. I'll commit that in a moment.
New commit, go grab the exe from the front page and see if that helps.