EXC_BAD_ACCESS when migrating a store, but only sometimes...
EXC_BAD_ACCESS when migrating a store, but only sometimes...
- Subject: EXC_BAD_ACCESS when migrating a store, but only sometimes...
- From: Daniel Kennett <email@hidden>
- Date: Wed, 28 Oct 2009 10:48:50 +0000
Hi list,
I've come across a rather perplexing problem which is driving me nuts.
I'm attempting to migrate a core data SQLite store to the current
model version, and most of the time it works fine. However, sometimes
I get an EXC_BAD_ACCESS in the following stack:
objc_assign_strongCast + 19
-[NSMigrationManager
migrateStoreFromURL:type:options:withMappingModel:toDestinationURL:destinationType:destinationOptions:error
:] + 2750
(My methods...)
Most of the time, if I simply try and run the migration again on the
same file it works fine. I'm not doing anything fancy - this is how I
call -migrateStoreFromURL:...
[manager migrateStoreFromURL:url
type:NSSQLiteStoreType
options:nil
withMappingModel:mappingModel
toDestinationURL:destinationStoreURL
destinationType:NSSQLiteStoreType
destinationOptions:nil error:error]
All of my vars are correct and I have no memory leaks or overreleases.
If anyone could help me start debugging what on earth is going on, I'd
really appreciate it.
Thanks,
-- Daniel
_______________________
email@hidden
http://www.kennettnet.co.uk
Please include previous messages in any reply you send.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden