backmeupplz/BTCEBot

App crashes after starting bot T.T

Closed this issue · 7 comments

Runs ok from 1 to 10 seconds, then crashes.
System: 10.8.2, compiled with Xcode 4.5.2.

It happens because json sometimes can return nothing or error. Try checking for nils

Ok will try, thanks

You are welcome! :)

not sure, but its possible that next update_info function are called while previous is running and that make json crashing?
Always when crash there are two threads calling getResponseFromServer

I'm pretty sure json cannot crash because of this. I think I will commit my changes on the next week

sorry I don't know much about cocoa I only made simple programs, and this is gonna make me crazy XD

Yes, json nil errors are real pain. Try to make methods more abstract, so you will not have to check for nils everywhere