How can I tell if a referenced object has been deallocated in objective-c?
After upgrading to iPhone OS 4.0 the application started to crash after switching between applications. The application crashes in the same place when the application receives a memory warning.

It seems like some objects are automatically deallocated when a memory warning is received and then when we try to use the deallocated objects the application crashes.

Is it possible to test if an object has been deallocated, so that we can reallocate them?
How can I tell if a referenced object has been deallocated in objective-c?
===

After upgrading to iPhone OS 4.0 the application started to crash after switching between applications. The application crashes in the same place when the application receives a memory warning.

It seems like some objects are automatically deallocated when a memory warning is received and then when we try to use the deallocated objects the application crashes.

Is it possible to test if an object has been deallocated, so that we can reallocate them?