Part of Database drivers: the hub. 50 entries under this heading; every entry opens as its own topic.
- Can a TPS file be rebuilt to remove fragmentation? - rebuild keys, or rewrite the file.
- TopScan shows "90 - File System Error / Cannot Create TopSpeed FCB" on a TPS file - TPSFIX with an example file, then REBUILD KEYS.
- App exits without any message on the first NEXT of a TopSpeed file - a damaged key; TPSFIX rebuild even when TPSFIX reports nothing.
- TopSpeed error 1477 on standalone PCs: what writes the wrong file size - an interrupted close; UPS, power settings, explicit closes, backups.
- TopScan shows "unknown Error Posted : 755 : WSLTG" when re-indexing a large TPS table (Reported, not reproduced) - TPSFix worked; the failure came in the TopScan re-index of all keys.
- TopSpeed files with 50 users: is TPS fit for a large multi-user database? - no single answer: two posters advised client-server for 50 users, two ran 50 to 150 TPS users on Novell for years, one found speed became the problem.
- What is the .TCF file of the TopSpeed driver, and can two applications share it? - the transaction control file, used only to recover a crashed LOGOUT.
- TPSFIX reports "record size mismatch" and cannot repair the file: copy the records to a new file - loop through the file and write every record to a new one.
- Windows 10 lockups in a TPS application on a network share after upgrading from Windows 7 - mapped drives dropped when idle (a Group Policy) and OPLOCK were the leads that worked.
- TopSpeed: does the driver combine two indexes for a filter such as customer AND date range? - no index merge in the driver; filter on the customer key, or build a two-component key (customer, date) and use a range.
- TopSpeed: one physical TPS file per table, or several tables in one file? - one file per table, almost without exception; several tables in one file only for small utilities.
- TopSpeed: finding the corrupt file quickly at a customer site - a small program that reindexes every file; a file that fails the reindex needs TPSFIX.
- TPS settings record: the fields at the end of the record are cleared to zeroes about every fortnight on one site (Reported, not reproduced) - antivirus, bad RAM and write stamps were suggested; the backup held the same zeroes; no cause was found.
- TPS file grows from 44 MB to 93 MB after adding one LONG field, the key space jumps (Reported, not reproduced) - the help topic "Estimating File Size" and string storage were discussed; the thread did not explain the jump.
- TPS application on a server share: both machines slow to a crawl when the second one starts (Reported, not reproduced) - opportunistic locks make the first user artificially fast; running the application on the server through Remote Desktop was one suggestion.
- TPS key returns child records in the wrong order when the key field is a CSTRING (Reported, not reproduced) - a CSTRING keeps leftover bytes after its terminator and a key uses the whole buffer; clear the field to nulls before saving, or use a STRING.
- Dynamic File Driver: reading an existing file whose layout the program does not know (Reported, not reproduced) - the Dynamic File Driver cannot read an unknown layout; write the layout to a file with TopScan and build the structure from it; nothing was confirmed.
- TPS files cannot be read on Windows Server 2003 R2 until the server is restarted (Reported, not reproduced) - a server restart cleared it, no file fix was needed; Server 2003 R2 itself and add-ons such as antivirus were suspected; no cause was found.
- TPS file: the built-in record pointer jumps by millions after a few inserts - freshen the file with File Manager 3, which copies the records into a new file and normalised the pointer; File Analysis in TopScan shows the file.
- Encrypted TPS: some wrong passwords give a corruption error instead of "wrong password" (Reported, not reproduced) - a second poster saw the same on TopScan 6.3 and 5.5 (
swwfine,Swwfails); the key is derived from the password in a way that was not confirmed. - TPS files corrupt three or four times a day at one customer on a network (Reported, not reproduced) - two posters pointed at network hardware, a bad network card; the test was replacing the cards, which meant about 50 computers; no cause was found.
- TPSFIX: "Cannot recognize Topspeed Signature. This may not be a Topspeed file." and the TPS file shrinks to zero (Reported, not reproduced) - run TPSFIX with an example file and "Use Header" unchecked; the poster already did both and concluded the files were beyond repair.
- TPS application on a server share: "has encountered a problem and needs to close", file C4TPSX.dll, even after TPSFIX repaired the data - suspect oplocks and caching on the server and the workstations; run RedrTest.exe on all of them.
- TPS error 48 "Unable to log transaction" on LOGOUT(), with enough disk space and rights - look for a leftover from a crash; deleting topspeed.tcf removed error 48 for the poster.
- TopSpeed file: 500 ADDs in a loop take 7 to 65 seconds, other drivers take a fraction of a second - put the loop between
LOGOUT(0.5,Sta)and COMMIT, which fixed it for the poster; for adds that arrive one at a time, write them in groups; a LOGOUT around every single ADD stayed slow. - Dynamic File Driver: how to add a BLOB to an in-memory file built from an ODBC (Firebird) SELECT; AddMemo "Unknown procedure label" (Reported, not reproduced) - AddMemo is a method of a DynFile instance, not of a FILE reference; how to combine the two got no reply.
- Dynamic File Driver: creating several TopSpeed tables in a row with one object always gives the first layout - CreateStruct never runs a second time because StructCreated stays set; derive a class and override ResetAll to clear it; the poster confirmed it works.
- TPSFix 6.3: the "TOPSPEED signature" error, and why it appears only from the command line - a damaged header: give TPSFix a good example file of the same format; from the command line quote the path; a wrong owner string was also suggested.
- TPS file near 2 GB: the first record past 2^31 bytes corrupts it, so split the history out - treat 2 GB as hard; move history to a second file with the same layout (an ALIAS opens both) or move to SQL a few tables at a time.
- Two offices sharing the same TPS files over a VPN on DSL: what to do - keep a local copy of the exe on each machine so only data crosses the VPN, or run the program on a server through Terminal Services.
- TPS files spread over several folders: setting the file name from path variables in the dictionary - the name lacked a backslash:
GLO:PathName05 & '\Empl01.TPS'; assign the folder variable at application start. - TPS and DAT files corrupted on a Windows 2008 server share: oplocks, and the options that avoid them - ranked as posted: the IP driver, a terminal server, a SQL database, or a NetTalk API server.
- TPS files on a Linux server: does it work, which distribution, and what about oplocks? - two posters said Linux with Samba handles TPS files well on any mainstream distribution; turn oplocks (level 1 and 2) off on the share.
- TPSFix messages "Record Size Mismatch", "Record Data Overrun" and "Data Key Size too big": what do they mean? (Reported, not reproduced) - nobody gave an authoritative meaning; copying the records to a new file and running TPSFix with an example file were suggested.
- Application moved to a new PC says a security file is missing (C4TPS.dll, C4RUN.dll, CRESEC25.exe): copy the SecWin key file dssw2.tps - The missing-security-file message came from an old SecWin setup; copying the key file dssw2.tps (and the Win.ini Secwin section) to the new PC fixed it.
- TPS or .DAT for speed? TPS wins with LOGOUT and COMMIT; with STREAM and FLUSH both are fast - TPS beats DAT with LOGOUT and COMMIT, both are fast with STREAM and FLUSH; time the COMMIT too, and APPEND beats ADD for imports.
- TopSpeed: is ADD() without LOGOUT safe for several users at once, or does it corrupt the file? - A plain ADD is safe because it locks the file only for that write; LOGOUT is for speed and all-or-nothing transactions; watch opportunistic locking.
- A VIEW on a TPS file runs about 10 times slower than SET/NEXT, though it is 50 times faster on SQL (Reported, not reproduced) - A VIEW on TPS was much slower than SET/NEXT; posters said TPS reads the whole record and keys need matching UPPER() in order and filter, but the slow case stayed open.
- TopSpeed: removing one table from a TPS file that holds several tables - REMOVE did not work for one table in a multi-table TPS; use the Topcopy utility from the Clarion bin folder, or a free utility for doing it from a program.
- A new TopSpeed table makes the C6.3 program close as soon as a table is opened (Reported, not reproduced) - A new TopSpeed table made a C6.3 program close at the first table open; posters suggested the field name Type, unique first 8 table characters, and TPSFIX; no result.
- TopSpeed: can my own code corrupt a TPS file, or is it only the network? (Reported, not reproduced) - Posters could not corrupt a TPS file by program code, one did by killing the app during COMMIT; Terminal Services or SQL stopped corruption for them.
- TPS: does a DECIMAL field in a compound key cost performance? Use a LONG for numeric codes - Key size matters more than DECIMAL versus other types; a LONG (for example 1001.11 stored as 100111) is small and fast, REAL is inexact in keys.
- Copying a record with a BLOB from one TPS file to another: deep assignment does not move the BLOB - Deep assignment skips BLOBs; FileToBlob and BlobToFile from CWUTIL.clw worked for the poster, PROP:Text for text-only data.
- Changing the driver of an aliased TPS file to MEMORY at runtime - With the Dynamic File Driver, set the alias PROP:Driver to memory before opening, per thread, plus the name; ABC FileManager open methods were the hook.
- TPS built-in encryption: what kind is it, and is it proprietary to the vendor? - TPS built-in encryption is vendor-specific and weak against casual eyes; for a published standard such as DES, encrypt the significant columns in the application.
- TPS error 90 on a network, TopFix reports Filerror 514 and Internal error 14 (Reported, not reproduced) - Error 90 plus TopFix 514 and 14 had no explanation; the docs point to FILEERRORCODE, and damaged and good files went to support with no outcome posted.
- TopScan shows two sub files, UNNAMED and UNNAMED1, in one TPS file - Every TPS file has a sub file named UNNAMED; a second spurious sub file was dealt with by copying the good sub file's records into a new file.
- Intercepting DELETE() and turning it into a PUT (file manager, file callbacks, triggers) - Override the file manager DeleteRecord to PUT; for hand code the poster renamed the built-in delete in builtins.clw and supplied his own delete in a DLL.
- Viewing the layout of a TopSpeed table you have no dictionary for (TopScan or Import Table) - View an unknown TPS file with TopScan (File Layout or File Analysis), or import it into a dictionary with Import Table and the TopSpeed driver.
- TPS: a Process reads a file and ADDs records to the same file, with STREAM and FLUSH - is that safe, and where does BUILD go? - Adding to a STREAMed TPS file while reading it is fine unless opened shared, then use LOGOUT and COMMIT; BUILD placement was disputed.