This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
DannySMc's profile picture

[Solved] Coroutines and buffer problems

Started by DannySMc, 04 September 2015 - 07:15 PM
DannySMc #1
Posted 04 September 2015 - 09:15 PM
So I am working on the new version of the app store, and I have a problem where it seems a program starts to bug up and get worse and worse until it crashes, I use CCLite emulator and it crashes it completely.

The coroutines seem to just get buggier and buggier? If running it on a computer in game, it seems to gets worse and worse, and I am not sure where the defect is:/

Do you have any idea why this is happening?:s
Thanks in advance guys! I just want to make the App Store as good as possible!

Code is below:
https://ide.dannysmc.com/workspace/dannysmc/Lua%20Programs/DiscoverStore/DiscoverStore.lua
Edited on 05 September 2015 - 08:20 AM
Bomb Bloke #2
Posted 05 September 2015 - 01:54 AM
"Bug up"? "Crashes"? What're the error messages?
DannySMc #3
Posted 05 September 2015 - 09:29 AM
There are no error messages, it's bugs up and crashes is the best explanation, which is why I'm asking you guys…

In game it runs fine then it starts flickering and becoming unresponsive and super slow…

Actually run the program and you will see….
DannySMc #4
Posted 05 September 2015 - 10:20 AM
I have fixed this now, was a problem with my coroutine manager as it was passing timer events to all open tasks which then would update the
Menu bar which in turn would make it slow and unresponsive

Thanks anyway