Hello,
I work on an app and get indications that it contents leaks. I have read my code 1000 times and double checked every alloc/retain and releases. Til now that did not help :-(
My problem is that I do not really understand what Instruments/Leaks "tells me". I made som screen shots in order to show you the situation. On start up, there is a leak detected. After that if do not leave the first view, it does not leak anymore. But if I use the tables in my App to navigate through the different parts of the app, some leaks appear. Those leaks only appear once each...this means after the leaks have appeared I can use the program "forever" without further leaks...
When clicking in the detailed view in instruments ie on pic 2 and 3 in the gray cells, I get following indications for the leaks.
As I said, I have gone through this code 1000 times and I do not find any leak in it. The odd thing is also, that the connection and parsing procedure is done once on start up... so I do not really understand why this is displayed as leak, lateron in the program flow...but it is of course possible that I understand those leak-indications totally wrong....please can anyone help me on this...
MACloop
I work on an app and get indications that it contents leaks. I have read my code 1000 times and double checked every alloc/retain and releases. Til now that did not help :-(
My problem is that I do not really understand what Instruments/Leaks "tells me". I made som screen shots in order to show you the situation. On start up, there is a leak detected. After that if do not leave the first view, it does not leak anymore. But if I use the tables in my App to navigate through the different parts of the app, some leaks appear. Those leaks only appear once each...this means after the leaks have appeared I can use the program "forever" without further leaks...
When clicking in the detailed view in instruments ie on pic 2 and 3 in the gray cells, I get following indications for the leaks.
Code:
//a leak
[[DataAccess sharedDataAccess] initWithUrls:urls andDelegate:self];
//another leak
[self requestWithUrls];
//another leak
NSURLConnection *connection = [[NSURLConnection alloc]initWithRequest:request delegate:self];
//another leak
int retVal = UIApplicationMain(argc, argv, nil, nil);
As I said, I have gone through this code 1000 times and I do not find any leak in it. The odd thing is also, that the connection and parsing procedure is done once on start up... so I do not really understand why this is displayed as leak, lateron in the program flow...but it is of course possible that I understand those leak-indications totally wrong....please can anyone help me on this...
MACloop