|
I've been struggling with this error for several days now to no avail. It seems that when I try to insert data, the garbage collector is generating an error because the object has already been released. This is the error I'm getting back from
Zombie: -[CFNumber release]: message sent to deallocated instance
This is my code, which is fairly simple. It works great the first time I call this method. It actually works the second time as well, but shortly afterwards the memory exception is raised. Any suggestions would be greatly appreciated.
-(void) createNewWatchPoint:(int)watchListId watchPointId:(int)watchPointId iso:(NSString *)iso
{
NSNumber *wlId = [[NSNumber alloc]
initWithInt:watchListId];
NSNumber *ptId = [[NSNumber alloc]
initWithInt:watchPointId];
WebServiceWrapper *proxy = [[WebServiceWrapper
alloc] initWithDefaultUri];
Model_EcDshbrdUsrWtchLstPoints *point = [Model_EcDshbrdUsrWtchLstPoints
CreateEcDshbrdUsrWtchLstPointsWithduwlwatchlistid:wlId
isoisocode:iso
pointid:ptId];
[proxy addToEcDshbrdUsrWtchLstPoints:point];
[proxy saveChanges];
}
|