1 min read

Restore Codejock Controls to Resolve Flex2SQL GUI Runtime Error

A few customers have reported unexpected problems running the Flex2SQL GUI. Error messages have been observed indicating that the TERMLIST.CFG file is missing

CodeJock Error 1 - Cannont Find TERMLIST.CFG - Mertech

and/or that an unhandled program error occurred.

CodeJock Error 2 - Unhandled Program Error - Mertech


The Problem

This problem occurs if VDF15.0 is uninstalled. Required runtime files and Codejock OCX controls, which are used by the Flex2SQL menus, are removed when VDF15.0 is uninstalled.


The Solution

1.    Move the 412045.dfr and termlist.cfg files to the bin directory:

Move from <ALLUSERSAPPDATA>Mertech Data SystemsFlex2SQL10.1
To                 <ProgramFiles(x86)>Mertech Data SystemsDB DriversDataFlexbin

By default "<ALLUSERSAPPDATA>Mertech Data Systems" resolves to:
"C:Documents and SettingsAll UsersApplication DataMertech Data Systems" in the Windows XP environment.
"C:ProgramDataMertech Data Systems" in the Windows Vista and Windows 7 environments.

2.    Re-register the Codejock controls:

Start a command prompt as an administrator
CD C:Program Files (x86)Mertech Data SystemsDB DriversDataFlexbin
Regsvr32 Codejock.CommandBars.v13.4.2.ocx
Regsvr32 Codejock.ReportControl.v13.4.2.ocx

NOTE: If you are running a 32-bit version of Microsoft Windows, the Mertech Data SystemsDB DriversDataFlexbin directory is in Program Files instead of Program Files (x86).



Data Security with Flex2SQL and BTR2SQL Connectivity Products

Data Security with Flex2SQL and BTR2SQL Connectivity Products

The most common reason for Enterprises looking to migrate from legacy Btrieve or DataFlex databases is the urgent need to address security and...

Read More
Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Introduction Many independent software vendors (ISV) and corporate users still rely on applications that use a category of database collective called...

Read More
Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

COBOL applications are the foundation of numerous essential business functions, especially within the banking, insurance, and government sectors....

Read More