performWithDelay query

Hi,

I made a clock app, based on the tutorial included in the SDK.

When I run the app using:

local tick = function()  
...  
  
timer.performWithDelay( 100, tick, 0 )  

It works fine on the simulator, but is broken when compiled for the iPad.

Changing the interations to ‘-1’ gets it working again, but I have no idea why, and I can’t find it mentioned in the API guide

local tick = function()  
...  
  
timer.performWithDelay( 100, tick, 0 )  

Can anyone clear up the difference between 0 and -1 in this case? [import]uid: 5652 topic_id: 1162 reply_id: 301162[/import]

That sounds like a bug, and I’ve logged it as case #247.

Does -1 currently loop forever on iPad, as a temporary workaround? [import]uid: 3007 topic_id: 1162 reply_id: 3091[/import]

With a 0.1 second delay and on -1, it loops for at least 10 minutes and hasn’t crash on me yet.

When set to 0, i get weird bugs; textures are missing, some code doesnt run etc etc. [import]uid: 5652 topic_id: 1162 reply_id: 3115[/import]