Incorrect decrement of the reference count of an object that is not owned at this point by the caller:
If you're try releasing an object returned from a property getter method, which in many cases would be the indication of a possible bug. To resolve this problem you can "release" the following way,
[date release];
date= nil;
(OR)
[date release], date= nil;
Argument in message expression is an uninitialized value:
If you declare any variable without default value this error could be occur. To resolve this issue just you add a default value for your variable.
You can declared like...
NSString *name = nil;
NSString *date = nil;
Instead of
NSString *name;
NSString *date;
Receiver in message expression is an uninitialized value:
You should initialize the value to nil when declaring it.
personDetails *personInfo = nil;
Instead of
personDetails *personInfo;
Logic error “Undefined or garbage value returned to caller:
If you're try releasing an object returned from a property getter method, which in many cases would be the indication of a possible bug. To resolve this problem you can "release" the following way,
[date release];
date= nil;
(OR)
[date release], date= nil;
Argument in message expression is an uninitialized value:
If you declare any variable without default value this error could be occur. To resolve this issue just you add a default value for your variable.
You can declared like...
NSString *name = nil;
NSString *date = nil;
Instead of
NSString *name;
NSString *date;
Receiver in message expression is an uninitialized value:
You should initialize the value to nil when declaring it.
personDetails *personInfo = nil;
Instead of
personDetails *personInfo;
Logic error “Undefined or garbage value returned to caller:
Assign default value of your string to nil; where you declared it.
NSString *title; should be changed as NSString *title = nil;
0 comments:
Post a Comment
Share your thoughts here...