Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2004-07

Possible TDbf bug and patch

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jesus Reyes

Hi, I think I found a bug in tdbf. One can scroll forward to the end of the dataset, in the last record if one scrolls forward one more time, the dataset enters the EOF state. The problem is that also the first record of the buffer (because of how shifting buffers works) gets incorrectly marked as invalid. As result, one cannot scroll backwards anymore. I'm not well aware of dbf internals so please check the patch, it did fix the problem for me.

Regards.

Jesus Reyes A.

_________________________________________________________ Do You Yahoo!?
La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

Reply by email

Unknown author
to Jesus Reyes
Jesus Reyes wrote 7 lines
Hi, I think I found a bug in tdbf. One can scroll forward to the end of the dataset, in the last record if one scrolls forward one more time, the dataset enters the EOF state. The problem is that also the first record of the buffer (because of how shifting buffers works) gets incorrectly marked as invalid. As result, one cannot scroll backwards anymore. I'm not well aware of dbf internals so please check the patch, it did fix the problem for me.

You would better send this patch to Misha Nelissen on the Lazarus list. He maintains TDbf. If he integrates it, the changes will be included in the FCL.

Please also check the version, the latest version included in the FCL, as of yesterday, is 6.3.7.

Michael.

Reply by email

Jesus Reyes
to Unknown author

--- escribió: >

Show quoted text 21 lines
On Tue, 20 Jul 2004, Jesus Reyes wrote: > Hi, I think I found a bug in tdbf. One can scroll forward to the end > of the dataset, in the last record if one scrolls forward one more > time, the dataset enters the EOF state. The problem is that also the > first record of the buffer (because of how shifting buffers works) > gets incorrectly marked as invalid. As result, one cannot scroll > backwards anymore. I'm not well aware of dbf internals so please > check the patch, it did fix the problem for me. You would better send this patch to Misha Nelissen on the Lazarus list. He maintains TDbf. If he integrates it, the changes will be included in the FCL.

oh sorry for sending to the wrong place, I will do as you suggest.

Show quoted text 6 lines
Please also check the version, the latest version included in the FCL, as of yesterday, is 6.3.7. Michael.

I see what you mean, a few hours ago when I sent the patch, it was version 1.2, now it is 1.3!.

Jesus Reyes A.

_________________________________________________________ Do You Yahoo!?
La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

Reply by email