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: AutoResolve fails on multiple threads on Windows



Hi Bruce,

I have an application which maintains multiple threads. When I do a DNSBrowserStartServiceSearch specifying kDNSBrowserFlagAutoResolve, I don't get the resolver callbacks for any other than the first thread. I can fix the problem by commenting out the kDNSResolverFlagOnlyIfUnique flag on line 981 of DNSServices.c, where the resolver is set up. Since kDSNResolverAutoReleaseByName is specified, the resolver should get released and will get released when the browser on that thread is terminated AFAIK. Does anyone know of another reason why I shouldn't do this?

I assume that you're using the DNSService.c stuff because you require PocketPC support? We'd like to phase out DNSService.c now that we have the "dns_sd.h" API on Windows. I'm not very familar with DNSService.c, but one thing I know is that you really shouldn't be using the kDNSBrowserFlagAutoResolve flag, since that triggers a resolve call on every service you discover. Is there a reason you need to resolve every service?


Best Regards,

-Marc
_______________________________________________
rendezvous mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/rendezvous
Do not post admin requests to the list. They will be ignored.


References: 
 >AutoResolve fails on multiple threads on Windows (From: Bruce <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.