Error using C API for LDAP

We are experiencing a problem just trying to execute an ldap_init:

ld = ldap_init(“dotted.ip.address”, 389);

We are getting a run-time error:

“The instruction at “0x01003053” referenced memory at “0x0000000c”. The memory could not be ‘read’”.

The same happens when trying to execute an ldap_open.

We are using the 6.5.1 version of the Notes C API.

Has anyone experienced a problem like this?

Thank you in advance,

Subject: Error using C API for LDAP

We are experiencing a problem just trying to execute an ldap_init:

ld = ldap_init(“dotted.ip.address”, 389);

We are getting a run-time error:

“The instruction at “0x01003053” referenced memory at “0x0000000c”. The memory could not be ‘read’”.

The same happens when trying to execute an ldap_open.

We are using the 6.5.1 version of the Notes C API.

Has anyone experienced a problem like this?

No, I’ve never seen this. Seems like an out-of-memory problem. If this were the case, ldap_init would simply return NULL, so I am mystified.

Here’s some questions …

Are you running your LDAP application on the same machine as a Domino LDAP server? (In which case they both use the same LDAP memory pool)

Did your LDAP application ever run correctly but started failing after performing many/large LDAP operations (if so, perhaps you’ve forgotten to call the corresponding free operations).

Does using a DNS friendly hostname argument for ldap_init work? (I would expect the same behavior).

If you can’t resolve this, please file an SPR and include the information above.