didreceivememorywarning

UIImagePicker Changing my Background?!?

I am opening an image picker, camera style, as a modalviewcontroller. If I open the image picker, then cancel, the previous view comes back fine. If I open the image picker, take a picture, then go back and cancel, the background to my previous view is missing and I can see through to the main window. Does anyone know how this might h...

Shrinking iPhone Memory?

I have noticed in my application that didReceiveMemoryWarning gets called much faster if my phone has not been powered down for a long time. It almost seems like the pool of memory that my application can access shrinks with time. Has anyone else noticed this and is there an explanation for it? Is there a course of action that I can tak...

My iphone app gets memory warning and killed at 6.8MB

My app has a thread that does some time consuming job for more than a minute and the app consumes around 6.8MB of memory. I receive a memory warning after sometime and then it gets killed. There is nothing that I can release, and I am using not even 7MB of memory...driving me crazy...any advice please? ...

Received memory warning. Level=1 when showing a UIImagePickerController

This is driving me crazy!!! I'm getting a "Received memory warning. Level=1" whenever I attempt to show a UIImagePickerController with a sourceType = UIImagePickerControllerSourceTypeCamera. Here is the code from my viewDidLoad where I set things up: - (void)viewDidLoad { [super viewDidLoad]; // Set card table green felt...

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 t...

UIImagePickerController does not dismiss after memory warning

Hi there, I have a UIImagePickerController as a synthesized property of my view controller. In general it works fine (takeing/picking photos, calling back, etc). However, when I receive a memory warning (didReceiveMemoryWarning is called on the view controller), although the app seems to handle it gracefully (viewDidLoad gets called fo...

didReceiveMemoryWarning advice (too many multitasking applications in the background)?

Please help, I don't know what I have to do with didReceiveMemoryWarning exactly. My app launched well, but when there is too many running background apps, it receives memory warning, and exit. I just want to show an alert that asks user to exit some background apps. I have an appDelegate, in its window there is a view of my viewControl...

Responding to didReceiveMemoryWarning oddity

So I have a map with a heap of MKPolygonViews overlaid. When I put a couple on it chugs a bit and then if I put them all on the systems sends a didReceiveMemoryWarning to the system that I've responded to by removing the overlays. Now I wondered how much memory it was actually using when this happens, it's only 10MB real memory and 100M...

UINavigationController and low-memory warnings

I use a UINavigationController (included in my app's main NIB file) with the following view-controller structure: navigationController | V RootVC ---> LevelOneVC ---> LevelTwoVC All my view controllers' views are loaded from NIB files using the same name as the view controller classes (RootVC.xib, etc). The ...

Simulate Memory Warning on iPad

Hi All, I am developing an iPad application which is having a custom Tabbar and a custom Header Bar. The header bar and Tabbar will stay there in the app in all views. The first view is the login view and with the simulator running when I made a "Simulate Memory Warning" the Whole screen goes Blank (White Color). Only the headerbar and...

didReceiveMemoryWarning called but not viewDidUnload?

I'm running into a situation where didReceiveMemoryWarning is being called but viewDidUnload is not. The docs for didReceiveMemoryWarning say: The default implementation of this method checks to see if the view controller can safely release its view. This is possible if the view itself does not have a superview and can be reloaded ei...

Application getting memory warning level 2 when loading webview iphone

Hi all, In my application I have a tableview which a couple of cells on click of which I launch webview but my application crashes giving me memory warning level 2 even before the webview loads. I have cleared most of the memory leaks. How should I respond to this memory warning? They say that I have to unload the unwanted views. I'm ...

To the bottom with didRecieveMemoryWarning

I have to go to the bottom with the didRecieveMemoryWarning method. I have read like thirty threads about this topic on this forum. And every answer is differerent. First question. Should you release objects in didRecieveMemoryWarning or just set them to nil? Or both? I have read that I should release the tableView data source, if you ...

[fetchedResultsController performFetch:&error] return NO and error is null after simulated memory warning in background mode

I am running my code in iphone simulator and I put the program in into background use the iPhone simulator menu hardware > simulate memory warning then call the program back to foreground and this code if (![fetchedResultsController performFetch:&error]) { NSLog(@"Unresolved error %@, %@", error, [error userInfo]); abo...

Why does my iPhone application crash when it receives a memory warning?

This is sort of a mystery to me. My application does not use very much memory but if I put it in the background and run as many memory-intensive applications as I can, occasionally my application will crash when I try to wake it up. I've looked at the crash log and this is what I see: 0 libobjc.A.dylib 0x000027da ...