IP driver: SetFileName creates the data file inside the data server folder and drops the drive letter

Applies to: as reported, Clarion C6.2 (9049) with IP driver v2.2 and TopSpeed files.

Problem

A multi-DLL app uses TopSpeed files through the IP driver and the In-Memory driver. Every file uses a variable for the NAME attribute. With c:\xyz folder\user data\filename.tps in the variable, SetFileName removed the drive letter and created the file as c:\ClarionDataServer\xyz folder\user data\filename.tps, under the data server folder.

Solution

  1. In the IP Server template, clear the checkbox "Enable Secure File checking Support".
  2. Rebuild and run. The poster reported that SetFileName then used a path outside the data server folder.

Caveats

  • The answer came from one poster's experience ("my experience"); the thread names no documentation for it.
  • The thread does not say what else the Secure File checking option protects; the poster reported only that the path now worked.
  • The poster's second question, how to reload In-Memory tables after SetFileName, got no answer. His attempt to run the generated Load() code again did not work after the first load, and the cache template covered only dictionary In-Memory tables, not generated ones.

Today (2026)

Not re-tested. The option name is from the C6.2 template and may read differently in a current build.

Sources: Chuck (Jan 2006, the question), Jorge (Jan 2006), Steven P. (Jan 2006) in softvelocity.clarion.databasedrivers.