From: Tim P. <he...@ti...> - 2008-07-30 09:17:40
|
Hey all, For completeness, heres what was happening: It was important to call ObjectSpace.garbage_collect() on on each timer itteration to clean up the junk, and also, it appears that somewhere deep inside ruby std lib (net/http) there must be a call to fork() or something which was causing issues, as when i replaced the native ruby code with cocoa NSURLConnection stuff the issues stopped and the app became stable. Also, code blocks (do ... end), they were causing issues too - when I removed them that improved stability also. It would be good to try and understand the specific of this behavior - might anyone be able to enlighten me? Cheers Tim |