
DBC is very simple and powerful. It is a great work of Alexander Kresin (author of HWGUI and one of the Harbour compiler main developers).
Some time ago, I've noted that in one of my apps, deleted records were recalled without no aparent reason. After research a little, I've found that this happened only with tables that were modified (with added new fields). Then, I've realized that the problem were related with DBC. In this process, I've found some other bugs too.
Please, consider these fixes temporary, until a new DBC version be released by its original author.
These are the bugs fixed
1. Changing fieldnames only when changing structure, made DBC crash.
2. Deleted records were recalled when changing structure.
3. When new fields added, if name, type or size were empty, DBC crashed. Now, user is warned and operation is cancelled.
- BE AWARE THAT WHEN CHANGING FIELD NAMES, FIELD CONTENT WILL BE LOST. THIS APPEARS TO BE A BEHAVIOR BY DESIGN.
- MORE TESTING IS REQUIRED, SO, COULD BE MORE PROBLEMS YET TO BE FOUND ** USE AT YOUR OWN RISK **
- PLEASE, TEST AND REPORT ANY OTHER PROBLEM YOU FOUND.
How to build:
1. Download DBC (Console version) from Alexander Kresin site: http://www.kresin.ru/en/dbc.html ('Download dbch_src.zip' link at the bottom of the page).
2. Replace 'modistru.prg' file with the one provided with this package
3. Build it the way you prefer (hbmk2 dbch.hbp is the easiest one).
Roberto.