Skip navigation.
 
mlWhat's with ICAImportImage?
FROM : Dave Hersey
DATE : Mon May 12 23:34:21 2008

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

Related mailsAuthorDate
No related mails found.