boyfarrell said:
You could try posting some code up. More eyes the better....
Apart from that crawl over all your -init and -dealloc methods. I made a silly mistake where I was not calling super once ....
I am more than willing to provide a copy of the entire project to anyone who is interested (it is an Objective-C wrapper for SQLite). If you want a copy, let me know where to send it.
I currently have three different problems:
1. There are still some places where there are too many retain counts so the objects are legitimately leaking; I have been tracking these down slowly.
2. For some reason the code is now crashing on a signal 10. Previously it was failing on an Pop release pool actiion. I suspect I am releasing something that is then being referenced rather than autoreleased and hence the change in behaviour, but I have not found it yet.
3. I have a weird situation where I place some object in an NSMutableArray, and they all have a reference count of 1. I pass then into an initializer for another class and use the array to initialize an NSArray; they now all have a count of 2. I make a pass through the array using an enumerator to set a non-retained reference object, and somehow the last item in the last magically gets a reference count of 3!
This last item has had me stumped for a while (had to take a break to do some spouse-approved activities), and I have not made much progress on the other issues.
The code is a bit of a mess right now since I have been adding NSLog() calls all over the place and commenting out parts of the code in an attempt to isolate specific problems and solve them (divide and conquer).