2013 m. rugsėjo 11 d., trečiadienis

Embarcadero XE2, IntraWeb and Oracle Coinitialize Error

Error "Coinitialize has not been called on start-up".
Check out the ComInitialization property of the Server Controller
module, and set it to ciNormal or ciMultiThreaded.

The ComInitialization property of type TComInitialization (ciNone,
ciNormal, ciMultiThreaded) is needed when the application requires the
use of (D)COM. Since IntraWeb executes requests in different threads,
each thread must make its own call to CoInitialize. By default this
property is set to ciNone, to indicate that no COM support is expected
or required. If you need COM support you need to set ComInitialization
to ciNormal or ciMultiThreaded. The later is the best choice, making
sure that each thread is safe to work with its own instance of COM
objects.