Note that there are some explanatory texts on larger screens.

plurals
  1. PO"message sent to deallocated instance 0xec75b0", but 0xec75b0 shouldn't even be visible
    primarykey
    data
    text
    <p>I'm working on an iPhone app that performs some communication with the server to be initialized the first time it's run. I have a class ServerCommunication with methods for each of the basic tasks to be performed (authenticate user, get activation key, download updates, etc.), and a new instance of ServerCommunication is created for each task; I'm not reusing them, although it would be more efficient.</p> <p>When the user completes the first initialization screen, ServerCommunication gets created four times. I keep track of it with <code>NSLog(@"Initializing ServerCommunication instance %p", self);</code> in its <code>-init</code> method. The second initialization screen also calls ServerCommunication a few times when the user taps the "Next" button, but on its last instantiation, the app hangs with the message <code>-[ServerCommunication insertDataIntoLocalDB:]: message sent to deallocated instance 0xec75b0</code> in the console. The thing is, 0xec75b0 is the address of the <em>first</em> instance of ServerCommunication I created way back at the first screen.</p> <p>Why would it be sending messages to that instance? I'm not retaining them anywhere; they're mostly autoreleased. If it helps, all of the methods in that class perform asynchronous downloading of XML data with NSURLConnection and then parse it with NSXMLParser. The parser's delegate method <code>-(void)parserDidEndDocument:(NSXMLParser *)parser</code> then sends off NSNotifications that are received by methods in my view controllers so they know whether to proceed to the next screen or stay there and display an error message.</p> <p>Help is much appreciated!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload