-
Notifications
You must be signed in to change notification settings - Fork 50
Leaks with NSDate #40
Comments
Hi @wsnnn, could you describe steps to reproduce? |
And which version do you use? |
Hi! Download stable version 29.06.2013. Here is the sample project. Tested on the iPad. The results are the same as above. |
Thank you, I'll review it soon. |
Could you try the new version from Here is #35 some discussion, also you may review P.S. or you can drop me on skype: |
Tried master. The same. Added class_getSubclasses |
Fixed on |
By the way, ActiveTwitter uses old API http://search.twitter.com/search.json?q=test |
f**k, I will fix it. |
Maybe this will help http://yadi.sk/d/4C4WG0Qk6PIuM |
stable |
I will review this at the evening. |
While I use master. Since AR is used in the life cycle very often, the leaks are very large. |
I can't understand where is the problem. |
Master shows on each call to the database: malloc: *** error for object 0x1f5d4890: pointer being freed was not allocated. |
Have you called |
No |
Could you try and leave a feedback? |
Posted on your mail |
Any thing new? I have this issue too. |
+1 |
Update please? |
Guys, could someone give me a test project with these leaks? |
@AlexDenisov I sent you an email with a failing project presuming the email listed in the wiki is yours. |
@alexgaribay, I've received your email and will review it soon, thanks. |
Any updates on this? I am trying to set a property of type |
I think it wouldn't be a bad idea to save dates as timestamps (NSNumber) for now, at least until the problem is resolved. |
@kirualex Yeah you could even save them as |
I still can't reproduce it nor on master branch, nor on stable. |
@nemesis-fw, regarding your issue with null date: have you marked the property as |
@AlexDenisov Yes, I most certainly did. |
By the way, my NSDate property is somehow getting converted into an NSNumber. Why is that? Did any of you encounter something similar to this? |
@nemesis-fw I noticed this as well. I have to change my models to not use actual dates but to use NSNumber to hold time since 1970. For me, NSDate would sometimes come as an NSDate or it would NSNumber. So I just settled on using NSNumber. So my work around is doing this: Saving a date model.date = [NSNumber numberWithDouble:[[NSDate date] timeIntervalSince1970]]; Getting a date NSTimeInterval time = [model.date doubleValue];
NSDate* theDate = [[NSDate alloc] initWithTimeIntervalSince1970:time]; |
I have same error using only one model with a NSString, this is frustrating. |
As this project is labeled as discontinued, I moved on to use ObjectiveRecord. It follows the same principles that iActiveRecord, but is wrapping CoreData instead of directly SQLite. |
Faced with such a problem: with each operation with a base leak. Xcode Instruments indicates iActiveRecord [NSDate dateWithTimeIntervalSince1970:] and [NSDate dateWithTimeIntervalSinceNow:]
//on the Russian

Столкнулся с такой проблемой: при каждой операции с базой происходят утечки. Xcode Instruments указывает на iActiveRecord [NSDate dateWithTimeIntervalSince1970:] и [NSDate dateWithTimeIntervalSinceNow:]
The text was updated successfully, but these errors were encountered: