Re: WTF is happening?
Re: WTF is happening?
- Subject: Re: WTF is happening?
- From: Uli Kusterer <email@hidden>
- Date: Tue, 16 Dec 2014 20:38:47 +0100
On 15 Dec 2014, at 19:19, Maxthon Chan <email@hidden> wrote:
> My current design is that the main code is never possible of holding strong references to plugin code for extended periods. Main code keeps an eye on a folder and whenever a new bundle is dropped in it is loaded, and whenever a bundle is removed code is unloaded. Class walking is used to detect the classes loaded. Also, SKFormat does not have any instance methods, only class methods, just to prevent any autorelease pool holding onto it.
That's not enough. For instance, any constant strings in your plug-in get unloaded, whether someone outside it still has a reference to that string or not. I think there's a flag to avoid constant strings when building a plugin, but AFAIK there are other reasons that cause similar issues.
Have you thought about making your plug-ins separate processes that communicate via pipes or Mach messages or similar mechanisms?
_______________________________________________
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