Tech Tip: Wrapping methods for 64 bit deployment
PRODUCT: 4D | VERSION: 12 | PLATFORM: Win
Published On: January 31, 2012
When switching your deployment target from 4D's 32 bit Server to 4D's 64 bit Server it may be necessary to wrap certain commands in order to alter the behavior depending on the version of 4D that the command is running within.
For example; if certain plugin commands may not be executed properly within the 64 bit version of 4D Server however they can be executed within the 32 bit version. Here is a technique demonstrating how to code for that type of deployment:
If (Version type=64 bit Version) // do stuff for 64 bit Else // do stuff for 32 bit End if |