wwDotnetBridge Usage Best Practice

wwDotnetBridge is dependent on a single version of .NET running inside of the host FoxPro process. So only a single version of the .NET Runtime can load.

To make sure you get consistent results with your applications follow these simple rules:

  • Call InitializeDotnetVersion("V4") during application startup
  • All subsequent uses of wwDotnetBridge should not use a version number
  • Use GetwwDotnetBridge() to get a reference to cached wwDotnetBridge instance
  • Never call GetwwDotnetBridge() or `CREATEOBJECT("wwDotnetBridge") with a version

If you use these guidelines you are guaranteed a consistent version environment that always has a consistent version of the .NET Runtime loaded.

© West Wind Technologies, 1996-2021 • Updated: 04/05/18
Comment or report problem with topic