Closed stzseungwon closed 8 years ago
Maybe this is related to https://github.com/matthewcheok/Realm-JSON/pull/77 - I've just merged and push 0.2.14 for this.
I tried 0.2.14 but got the same result. autoreleasepool deallocates NSMutableDictionary and only static pointer left alive. How about this is? This works fine though. for mc_outboundMapping & mc_inboundMapping
mappingForClassName = [[NSMutableDictionary dictionary] retain];
for mc_classForPropertyKey
set = [[NSCharacterSet characterSetWithCharactersInString:@"\"<"] retain];
I think I found the problem(which was mine). This(R+J) is ARC project and my projects is Non-ARC. So I had to add -fobjc-arc flag in build phase.
When I attempt to call createOrUpdateInRealm:withJSONArray: multiple time in loop for multiple RLMObjects, the first RLMObject works OK, but the second RLMObject(no matter what class is) fails with EXC BAD ACCESS code1 on static variable. I think autorelease pool deallocate pointing NSMutualDictionary. Anybody got this issue? I'm using xcode 6.3.2 and Realm 0.96.3.