Hey Guys i am getting this error "message sent to deallocated instance 0x141dafb0" its comming from a UIBarButtonItem when its beeing pressed on the application. any help would be greatly appreciated
Error:
*** -[PeerConnection performSelector:withObject:withObject:]: message sent to deallocated instance 0x14143ff0
PeerConnection.h
#import <UIKit/UIKit.h>
#import <GameKit/GameKit.h>
@interface PeerConnection : NSObject <GKPeerPickerControllerDelegate, GKSessionDelegate> {
UIBarButtonItem *StartConnection;
}
- (IBAction) StartConnectionAction;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *StartConnection;
@end
PeerConnection.m
#import "PeerConnection.h"
@implementation PeerConnection
@synthesize StartConnection;
- (IBAction) StartConnectionAction {
NSLog(@"Start Connection to the other IPhones");
[StartConnection release];
}
- (void)dealloc {
[super dealloc];
}
@end
i have enabled Zombie and that is all its giving to me