Game quits when relaunched

I notice that all my builds of my game (currently for iPhone only) quit when I relaunch them. So basically the first time I launch them, the game runs as normnal. If I then click the iPhone home button to close the game and then relaunch, the game flashes up briefly then quits. I notice that it appears to be in the same state that it was in when I quit it.

I am sure this is probably something fundamental that I am not doing.

I am using the Director class btw, just in case that has any implication. I can’t recall if this happened before I started using the Director class.

Thanks

Paul [import]uid: 7863 topic_id: 3190 reply_id: 303190[/import]

Sounds like you need multitasking support (possibly). Worth checking this thread out:

http://developer.anscamobile.com/forum/2010/10/07/tutorial-fixing-ios4-multi-tasking-attempt-crashes [import]uid: 9189 topic_id: 3190 reply_id: 9799[/import]

@mjohnson121 - fantastic! That sorts it!! Many thanks for pointing me to that thread.

In case anyone else has the problem I created a file named build.settings and put the following in it. Please note my game is designed to play in portrait mode only.

[code]

settings =
{
orientation =
{
default = “portrait”
},

iphone =
{
plist =
{
UIApplicationExitsOnSuspend = true
},
},

}

[/code] [import]uid: 7863 topic_id: 3190 reply_id: 9887[/import]

Sweet, glad that was it! [import]uid: 9189 topic_id: 3190 reply_id: 9928[/import]