Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Garbage Collection and Safari webplugin?




On 10/04/2008, at 12:33, Andrew Bray wrote:

Hi all,

Does garbage collection work in a Safari webplugin? If I turn garbage collection on, I get the following message in the console:

10/04/08 3:21:38 PM Safari[4240] Error loading /Users/**/Development/ Projects/objc/WebKitPlugins/**/build/Debug/**.webplugin/Contents/ MacOS/**: dlopen(/Users/**/Development/Projects/objc/WebKitPlugins/ **/build/Debug/**.webplugin/Contents/MacOS/**, 265): no suitable image found. Did find:
/Users/**/Development/Projects/objc/WebKitPlugins/**/build/Debug/ **.webplugin/Contents/MacOS/**: GC capability mismatch


Can you do this, or am I just doing something wrong?

The short answer is no, you can't do this.

The long answer is that it depends on the WebKit-using applications that you would like to load the plug-in. Garbage collection is a process-wide state, and whether or not it is enabled is determined by the main executable that is launched. Code can be compiled in three modes: no GC, GC supported (-fobjc-gc), and GC required (-fobjc-gc- only). An application that was launched without GC, such as Safari, is not able to load a plug-in or framework that is built requiring GC (as yours appears to be). Similarly, an application that was launched and uses GC is not able to load a non-GC aware plug-in or framework. The Garbage Collection documentation at <http://developer.apple.com/documentation/Cocoa/Conceptual/GarbageCollection/Articles/gcEssentials.html#//apple_ref/doc/uid/TP40002452-SW6 > talks about this briefly if you'd like further information.

- Mark

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden

References: 
 >Garbage Collection and Safari webplugin? (From: Andrew Bray <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.