Connecting to GSM/GPRS unstable, eventually hangs

hi, is there a reason why this only works when the debug mode is true?