Updates: Status: Fixed Comment #6 on issue 129 by benoit.m... at ...626...: For-loop does not work on large ranges http://code.google.com/p/gambas/issues/detail?id=129 It should be fixed in revision #4208. I remove the optimization until I find a good one.