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:
InitializeDotnetVersion("V4")during application startup
- All subsequent uses of wwDotnetBridge should not use a version number
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.
Comment or report problem with topic