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: Problem with Polar IR USB Adaptor



On 1/28/03 8:59 PM, Greg Hulands wrote:

> When I do the following:
> result = (*_device)->GetConfigurationDescriptorPtr(_device, 0,
> &configDesc);
> I get the following error:
> IOUSBDeviceClass::GetConfigurationDescriptorPtr cache was INVALID
> 
> Can some one tell me what this means and how to overcome it.

What is "result" after you called it?  That's what you should go by, not by
anything that is printed in the console.  In this case, it looks like we
left some debugging printf() in our code.  All that is saying is that we had
not cached the descriptor beforehand, so we'll try again.  The result of
that call is what is important.

IOUSBDeviceClass::GetConfigurationDescriptorPtr(UInt8 index,
IOUSBConfigurationDescriptorPtr *desc)
{
    IOReturn    kr = kIOReturnSuccess;
    
    connectCheck();
    
    if (index >= fNumConfigurations)
        return kIOUSBConfigNotFound;
    if ( !fConfigDescCacheValid )
    {
        printf("IOUSBDeviceClass::GetConfigurationDescriptorPtr cache was
INVALID\n");
        kr = CacheConfigDescriptor();
    }
        
    *desc = fConfigurations[index];
    
    return kr;
}

-- 
Fernando Urbina                            mailto:email@hidden
USB Technology Team                           work: 719.534.9387
Apple Computer, Inc.                           fax: 719.532.0981
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.

References: 
 >Problem with Polar IR USB Adaptor (From: Greg Hulands <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.