An attempt to address the table view bug on CasualConc beta

投稿日: Mar 10, 2012 5:2:45 PM

It has been know that CasualConc (and my other apps) has a problem with result tables. In fact, this is not a bug of just CasualConc, but the bug of RubyCocoa, which CasualConc depends. The maintainer of RubyCocoa acknowledge this, but hasn't been able to address it. So I make an attempt to address it in not very elegant way.

All I know is this is caused by garbage collectors of Ruby and Objective-C, so I tried to disable Ruby's garbage collector when CasualConc is not processing text. Since CasualConc is a single thread application, you can't do anything while it's processing text. But this may come with some costs in terms of processing time and memory consumption.

I uploaded the new beta 1.9.1 with some other minor bug fixes, but if this change causes a lot more problem than it solves, I will revert it back to the previous build or disable 'disabling GC'. Please let me know if you encounter any problems.