• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem sending notification from C callback function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem sending notification from C callback function


  • Subject: Re: Problem sending notification from C callback function
  • From: "Sean McBride" <email@hidden>
  • Date: Thu, 8 Jan 2009 21:45:08 -0500

Sandro Noel (email@hidden) on 2009-01-08 8:57 PM said:

>DARegisterDiskDisappearedCallback(daSession, NULL,
>&DiskDisappearedCallback, (void *)self);

Is your application garbage collected?  If so, passing self as the
context could be problematic.  See:

<http://developer.apple.com/documentation/Cocoa/Conceptual/
GarbageCollection/Articles/gcUsing.html#//apple_ref/doc/uid/TP40008006-SW4>

Sean


_______________________________________________

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

References: 
 >Problem sending notification from C callback function (From: Sandro Noel <email@hidden>)

  • Prev by Date: NSPersistentStoreCoordinator Wars Episode I: The Phantom Lock Menace
  • Next by Date: Re: Hyperlinks
  • Previous by thread: Problem sending notification from C callback function
  • Next by thread: Re: Problem sending notification from C callback function
  • Index(es):
    • Date
    • Thread