"Matt Ross" <[EMAIL PROTECTED]> writes: > I am using Borland C++ Builder 6 under Windows 2000 to write an LDAP utility > for adding/editing/removing users of an eDirectory using the Sun LDAP C SDK > 5.08. If I try and set breakpoints in my code it always hangs the debug as > soon as an LDAP function ldap_search_ext_s is called. If I pause the running > program and step through the assembly I eventually get back to > libnspr4._PR_DelSleepQ. If I run the program outside the Borland IDE (of > course without the debugging) it runs normally. > > My question is this: What is libnspr4._PR_DelSleepQ and why is the LDAP SDK > preventing me from debugging my application normally? > > Is the NSPR required by the other libraries or can I use different functions > to avoid it and possibly solve this problem? Exactly the same happens if I > use the Optimized and Debug versions of the SDK from Sun.
It sounds like you're using libprldap, which causes the C SDK to use NSPR under the hood for its I/O. http://www.mozilla.org/projects/nspr/ has info about NSPR. Stop linking with libprldap and libnspr, and the NSPR use should go away... If you're not using libprldap, I don't know how libnspr could be involved here at all. Dan