For some reason, with my Settings program, whenever you change a setting in there, the program will not close without using ctrl + t. I'm assuming it's some big mess up that I caused, but I cannot seem to find anything.
The code: https://github.com/T...mFiles/Settings
For any of those thinking that I could do this in so many better ways I know, it's just an issue when you want to support third party programs to put things into the settings. (to me, at least)
Program not returning weirdly
Started by Twijn, Dec 05 2015 04:03 AM
2 replies to this topic
#1
Posted 05 December 2015 - 04:03 AM
#2
Posted 05 December 2015 - 04:17 AM
https://github.com/T...s/Settings#L239
This line is an infinite loop, I can't see anywhere that updates the stopend variable.
This line is an infinite loop, I can't see anywhere that updates the stopend variable.
#3
Posted 05 December 2015 - 05:02 PM
KingofGamesYami, on 05 December 2015 - 04:17 AM, said:
https://github.com/T...s/Settings#L239
This line is an infinite loop, I can't see anywhere that updates the stopend variable.
This line is an infinite loop, I can't see anywhere that updates the stopend variable.
Then, when the exit button is pushed the variable "running" is set to false (the running variable makes the button api continue to loop) and it also updates the Button API by sending a fake queue event, causing the loop to end and the function to return, thus ending the parallel.
EDIT: Found something new.
It will only not return if you set Animations to false. If you also try and turn it back to true, it does not work as well. Additionally, the loop DOES finish. (tested by making it print something after the parallel). This makes be believe it's something wrong around this line/program: https://github.com/T...iles/Menus#L123
EDIT #2: I have fixed everything, it works fine now. The issue was that I had drawMenu in the file above inside of the animation check, instead of after it. I also realized I had the rclick function inside of the normal function, meaning you couldn't rightclick anything in the function after clicking a button.
Edited by Twijn, 05 December 2015 - 05:15 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











