To avoid having to write everything again here is a link to the FreePascal bug report I created on this subject.
http://mantis.freepascal.org/bug_view_advanced_page.php?bug_id=16292
A proper example application is attached on that page (also read the first comment I left there).
The link to freepascal.org doesn't work for me currently. Does this happen with latest snapshot, currently revision 803, from https://sourceforge.net/p/tdbf/code/HEAD/tree/? If so, please provide some code to reproduce it, expected behavior and actual behavior.
Close due to lack of information.