Disables the BSTR caching in OleAut32.dll.
void __cdecl SetOaNoCache(void);
This function has no parameters.
This function does not return a value.
OLE Automation caches the space allocated for BSTR strings. The SetOaNoCache function immediately disables the oleaut32.dll BSTR caching mechanism. All further allocations and deallocations are passed directly to the process allocator. Cached BSTR values are not released. This function should be called before any BSTR operations take place in the process. BSTR caching can also be disabled at the machine level by setting the environment variable OANOCACHE to 1.