release

UINavigationController releasing bonanza

At the end of this code: UIViewController *viewController = [[UIViewController alloc] init]; UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:viewController]; [viewController release]; [self presentModalViewController:navigationController animated:YES]; [navigationController relea...

Releasing object due to retain count

Hi all, I have an issue with releasing a view too many times. Although simple in theory because im moving uiview to uiview, which is a subclass of uiview and being animated and so on its not something that I can easily fix. It only crashes 10% and only under certain conditions and only 30% of the time even under these conditions. So i...

Release timetables in Agile Environments

Hello, We are currently utilising an agile environment in work. One of my tasks involve setting up a release timetable. A part of this is providing a time frame of how long a project would take to go from a development environment, to staging and then live. I have conflicting thoughts regarding whether such a timetable needs to be done...

How to release object passed to protocol or delegate method in Objective-c?

How and when is released IndexPath object which is returned in UITableViewDelegate? let's imagine code: //my method in my object { NSNumber *number=[[NSNumber alloc] init]; number=[[self methodreturningnumber] retain]; [delegate didSelectItemAtIndex:number]; } in my delegate I have method: -(void)didSelectItemAtIndex:(N...

objective-c release

Hi, I have this class in DNS.h @interface DNS : NSObject <NSXMLParserDelegate, NSNetServiceDelegate> { NSMutableArray *servsPublished; } @property(nonatomic, retain) NSMutableArray *servsPublished; Then in the implementation file DNS.m there's a method where I release it and I get the exec bad access memory error. This is metho...

Release a listener / observer in Objective-C?

Hi guys! I'm not sure when it's the right moment to RELEASE a listener object. I have a object A that uses NSURLConnection's initWithRequest method to retrieve some URL. initWithRequest requires a delegate to listen after the events of dataReceived... So object A creates an object B and passes it as a delegate for initWithRequest metho...

Debug and Release configurations

As we all know, in Visual Studio there are two predefined configurations - Debug and Release. I have been using them since I started programming and soon learnt their differences. However recently I had to create my own configurations and now I have a question: Are those two configurations defined/determined solely by their parameters/op...

web.release.config change dynamic webservice url

I'm editing my web.release.config file for production. I want the web.config file changed after a publish. I found how to change the web.config by using the web.release.config file properly, but not for this particular component. The URL of an dynamic webservice has to change. In the web.config: <applicationSettings> <FooService.P...

UIWebView - When (or how) does CFData get released?

Hi, after multiple days of banging my head against the wall and having sleepless nights I'm hoping to find some help here. I've gone through various posts here, but none of the answers seem to provide a resolution for me. In short, my problem is that my App crashes after heavy usage (>10min) of the UIWebView (e.g. opening larger news p...

How Do I Create A Certificate For My Android Market APK?

I want to upload my first APK/app to the Android Market, but I got this error (which did not lead me to the correct link when searched for in stackoverflow, by the way). Market does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years. Market requires that the certificate used t...

Objective C [object release]

I'm looking at someone else's code, but it appears to RELEASE object VIDEO but then continue to use it. Now from my understanding of Object Oriented Programming languages, once it's released, it should be dealloc'd from memory... I can't see how it has any references...but I'm assuming that's the reason it's OK. Seems like a strange th...

c++ - what to do if debug runs fine, but release crashes

Hey there! I have an application that runs just fine in the debug build, but when I start it in the release build, i get a unhandled Exception at 0x0043b134 in myapp.exe: 0xC0000005: Access violation while reading at position 0x004bd96c if i click on 'break' it tells me that there are no symboles loaded and the sourcecode can't be di...

VS2010 Debug build works, but Release does not

I have an app that I've recently added two C# classes to. It always built in both debug and release. The differences between the two configs are nothing. Now when I build the release, it says that one of the dependencies cannot be accessed. This is only for the release build. Nothing changed to that dependency and it always worked. Any ...

Objective-C property release error

Hi, what could be causing this crash? From everything I've read, I'm using the property correctly. When I call the method loadDot2Dot a first time, it works fine. Then when I go back to the main menu (call loadMainMenu) and try to load the dot2DotVC again (call loadDot2DotVC again), I get a crash (Exc_Bad_Access) - with no further info. ...

Memory leak in a small code with dealloc

Hi All! Assist me please, is this code correct? I mean, do we really need a dealloc method in this class, and why do or don't we? Will be a memory leak if we don't use dealloc here? Thanx! #import <Foundation/Foundation.h> @interface MyData : NSObject { @private NSString *name; NSString *surname; NSString *email; ...