I'm getting an access violation on ORALDAPCLNT10.DLL when calling CDatabase OpenEx function.

Can someone help me out?