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

 _______________________

   dan...@kennettnet.co.uk
   http://www.kennettnet.co.uk

Please include previous messages in any reply you send.



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to