Comment on Found a nice bug in IOS today, bricks your phone and kills the SimulatorComments−tomjen315yI am not an iPhone developer, but the code doesn't seem unreasonable to me.Can anybody explain what is special about this code?−JoachimSchipper15yIt's a function that configures ten timers to call itself. So it causes an exponential number of timers to be set.−Fjanth15yThats not the bug though. Can do it without a loop as well. This was an old version, check the other one I posted here in this thread.−JoachimSchipper15yOk. I would be very grateful for an explanation, then. ;-)−napierzaza15yIt creates 10 copies of an alarm on the same date with a setting to repeat twice. So I imagine 10 alarms firing at the same time is not a good idea. I don't see where it calls itself like other people are saying.
Comments
I am not an iPhone developer, but the code doesn't seem unreasonable to me.
Can anybody explain what is special about this code?
It's a function that configures ten timers to call itself. So it causes an exponential number of timers to be set.
Thats not the bug though. Can do it without a loop as well. This was an old version, check the other one I posted here in this thread.
Ok. I would be very grateful for an explanation, then. ;-)
It creates 10 copies of an alarm on the same date with a setting to repeat twice. So I imagine 10 alarms firing at the same time is not a good idea. I don't see where it calls itself like other people are saying.