Is there a way to get ICAImportImage to work correctly? Using the code in the docs, the ICAImportImageSample_Cocoa or the ICAImportImageSample_Carbon samples all gives the same results when built with the 10.5 SDK:

---------------------------------------------------------------------------------------------------------
"An instance 0x18fb00 of class ICScanner is being deallocated while key value observers are still registered with it. Observation info is being leaked, and may even mistakenly become attached to some other object."

<"notificationString" NSKeyValueObservance message>

"An instance 0x18fb00 of class ICScanHelper is being deallocated while key value observers are still registered with it. Observation info is being leaked, and may even mistakenly become attached to some other object."

<numerous NSKeyValueObservance messages>

"An instance 0x18fb00 of class ICScannerGeometry is being deallocated while key value observers are still registered with it. Observation info is being leaked, and may even mistakenly become attached to some other object."

<numerous NSKeyValueObservance messages>
---------------------------------------------------------------------------------------------------------

Or, sometimes, it just crashes.

The doc code and sample code are very simple and don't explicitly declare ICScanner, ICScanHelper or ICScannerGeometry objects. Those allocations/deallocations are happening within the framework code.

Since the Image Capture application doesn't have this problem, is it using a different method to run the Image Capture Scan dialog or is there a trick to get this to work right?

Thanks,

Dave


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to