Thread-Security:Oracle Objects for OLE C++ Class Library -- NT 4.0/MSVC++ 4.2

From: Richard Landon <rlandon_at_americasttv.com>
Date: 1997/06/20
Message-ID: <33AA9860.1865_at_americasttv.com>#1/1


Hello Oracle,

I would like to develop a program using Oracle Objects for OLE C++ class library. I have a need to perform the queries in the context of a multithread application.

When I run a trival use of the class library (the most basic example in the on-line,
cut and pasted into a MSVC 4.2 project on a single thread, I have no problems.
When I run on a secondary thread, I get a memory access violation (VC++ exeception "C 5" in OIP21.DLL! I have made sure that I initialize the COM object ("OLE initializatin via OStartUp()? on the same thread that I call the other OLE C++ class methods on!)

I have tried using the RogueWave Threading Package (RWThreads.H++) and by coding directly to the Win32 Threading API, both with the same results: MSVC++ reports a memory access violation in the OLE Server.

Since I can not seem to utilize the debug version of the ORACLM32.DLL I am not absolutely certain, but I suspect that the ORACLE OLE DB server is blowing off in IDISPATCH. (If you have any hints on debugging this I would like to hear them)

If you have any suggestions, I would greatly appreciate hearing from you.

You can contact me via e-Mail: rlandon_at_americasttv.com

Regards, Rick Landon :-) Received on Fri Jun 20 1997 - 00:00:00 CEST

Original text of this message