CoreData: Loading in an Initial Data Set from XML?

When you see EXC_BAD_ACCESS, you have over-released an object Here is some troubleshooting advice.

When you see EXC_BAD_ACCESS, you have over-released an object. Here is some troubleshooting advice.

Thanks for the advice, I solved the problem eventually, excuse the personal link but I can't seem to find the post I made on the official mac forums: thelostsouls.org. Uk/2010/07/… – Diziet Jul 26 '10 at 11:44.

I think you're to fixated on the location of the code being the problem. Objective-C, Core Data and the general Apple API are all very encapsulated and modular. You can plug in needed functionality almost anywhere and activate it or not at almost any time.

The only critical locations/times are app delegate methods related to the starting and stopping of the app. Everything else is flexible. In your case, you only need to load data before you use it and you only need to merge data after it has changed.

The possible configurations of when and where are functionally infinite. Different apps do all this at different places and times. You should be looking at a more prosaic cause of the EXC_BAD_ACCESS.

Under normal conditions, the debugger will show you the line where the crash happens. If it shows nothing, then the debugger itself most likely crashed. More likely, you just missed the display of the crashed line because the line in your code that triggered it is scrolled off the screen of the stack trace.(A lot of beginners make that mistake.).

With regards to the debugger (the visual one not the gdb kind which I know, the gdb one displayed zip) it only displayed 2 lines which were pretty deep into apple libraries. I think you're definitely right about me being fixated on that rather than looking at more general causes of the mistake thanks for plain language over view. I must confess I still find myself putting breakpoints into controller functions to check the order in which they load.

:) As mentioned in another comment below I solved the problem, albeit in a hackery fashion. – Diziet Jul 26 '10 at 11:47.

There are tutorials out there, if not related questions and answers here in SO (I know for a fact I answered a question about how to use NSXMLParser), that will tell you how to do each of those things, but the particulars of how they work together quickly become specific to your project. It looks as though you are on the right track with some of your comments, so I suggest you keep going down the path you are on and see how it goes. When you come up with a specific problem related to your project, then come back here and see where there is an answer.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions