Re: Carbon app and Cocoa/Carbon Bundle plugin - possible?!
Re: Carbon app and Cocoa/Carbon Bundle plugin - possible?!
- Subject: Re: Carbon app and Cocoa/Carbon Bundle plugin - possible?!
- From: Igor Delovski <email@hidden>
- Date: Tue, 18 Jun 2013 12:51:27 -0700 (PDT)
At first glance this seems to be the case. Just put into comments this part: CFRelease (bundleRef); and application stopped crashing. Now I have to reorganize everything, plugins need to tell the application if they need to stay alive forever.
Plus, I already see other implications. I used to be able to change and rebuild and test plugins as the main application was running. Now I need to restart the application with each iteration. The joy of modern things...
But thanks, your response has been very helpful.
Igor
--- On Tue, 6/18/13, Jon Gotow wrote:
> From: Jon Gotow
> Subject: Re: Carbon app and Cocoa/Carbon Bundle plugin - possible?!
> To: "Igor Delovski"
> Cc: "Nick Zitzmann" , "email@hidden"
> Date: Tuesday, June 18, 2013, 5:14 PM
>
> On Jun 18, 2013, at 3:53 AM, Igor Delovski
> wrote:
>
> > Crash occurs after the plugin loads, fills some buffer
> with its name and unloads. Then when I move or just
> touch the main window of the application I get bad
> access.
>
> Don't unload your plugin. IIRC, the Cocoa runtime really
> doesn't like it when classes go away, so once your plugin is
> loaded it needs to stay loaded.
>
> - Jon
> ________________________________________________________________________
> Jon Gotow
>
> email@hidden
> St. Clair Software
> http://www.stclairsoft.com/
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden