On Wed, Feb 25, 2009 at 1:21 PM, I. Savant <idiotsavant2...@gmail.com> wrote: > I was rushing off to a meeting, but I wanted to expand on this a > bit. Most complicated applications won't be loading all their > resources when they're launched (if they're worth a damn, that is), so > consider what would happen if, as happened today at my place of > employment, a wide-spread electrical problem caused all the internal > switches to randomly go up and down for half the day.
Note that there's no need to add the qualifier "most complicated" here. *All* applications load resources lazily, simply because OS X uses memory-mapped executables. The binary doesn't get loaded into RAM all at once, it gets loaded on demand. If the network dies and then you try to access some code that either was never loaded or got purged, game over. If the network disk is gone then the application will segfault and crash. If the network disk is still mounted then it will freeze until either you can convince the system to start it working again, or until it goes away and then the app will segfault. Mike _______________________________________________ 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