KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Change in Bring to front operations on Windows with 64 bit 4D
PRODUCT: 4D | VERSION: 16 | PLATFORM: Win
Published On: March 9, 2017

On Windows some developers may have been using the following routine to bring the 4D Application to the front:

// bring current application to front
$cmd:="cmd.exe /c \""+Application file+"\""
SET ENVIRONMENT VARIABLE("_4D_OPTION_HIDE_CONSOLE";"True")
LAUNCH EXTERNAL PROCESS($cmd)


It is important to note that starting with the 64 bit version of 4D Developer (such as in v16.0 or v16R2), this routine no longer brings the application to the front, but instead this routine launches another instance of the 4D application.

This is a change in behavior between 32 bit and 64 bit versions of 4D Developer. This change in behavior is linked to a new feature in v16 and is only possible in 64-bit as there is no more Altura. This change is considered to be the expected behavior in 4D Developer 64-bit on Windows.