go into Settings ->General ->Auto lock and st to never. Not a lot of choices you'll see. I'd change settings back after running your particular app to save battery life.
On mine the options for 'Autolock' are '2', '5', '10', '15' and 'Never'.
I have iOS 4.2.1 if that makes a difference.
Tim
Scotland