discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging NSNotificationCenter


From: Andreas Höschler
Subject: Re: Debugging NSNotificationCenter
Date: Wed, 4 Oct 2006 13:12:57 +0200

Hoi,

no idea what is going wrong, but my first try would be to start gdb and
have a look at the notification directly. If this does not seem like a
good idea, I would recommend that you ask the notification for its class
and print that instead of the notification itself. If this works and it
is the class notification, you could ask the notification for its name
and have that printed.
My guess is that either the object or the user information of the
notification fail to print.

Found the cause! We sent a postNotification: from a subthread to the main thread. The object of the notification was probably already released when the notification reached the main thread. Just another example of (bad) code that runs fine on MacOSX but fails to work under GNUstep. If you want to make sure that your code is free of bugs, try to run it under GNUstep. It won't work until you fixed the last bit. :-)

Thanks!

Regards,

  Andreas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]