Condividi tramite


SYS(2339) - Call CoFreeUnusedLibraries when COM object is released

Sets or returns whether Visual FoxPro calls the operating system function CoFreeUnusedLibraries when a COM object is released.

SYS(2339 [, 0 | 1 ])

Parameters

  • 0
    Specifies that CoFreeUnusedLibraries is not called (default).
  • 1
    Specifies that CoFreeUnusedLibraries is called.

Return Value

Character

Remarks

The default setting, 0, in this version of Visual FoxPro differs from the setting in the previous version of Visual FoxPro to aid performance, primarily in multi-threaded DLLs. The new default behavior, therefore, is not to call CoFreeUnusedLibraries whenever Visual FoxPro releases an instance of a COM server (such as an ADO connection). However, Visual FoxPro automatically calls CoFreeUnusedLibraries whenever the COM DLL is rebuilt.

See Also

VFP7R.DLL Run-Time Library | VFP7T.DLL Run-Time Library | BUILD MTDLL Command