Menu

#185 Bug with browse after refresh

v1.0_(example)
closed
nobody
1
2024-09-02
2024-08-25
No

Hi,
I have a dbf file which is put in an array, which is used by browse.
This array contains the complete dbf.
For searchng purpose, I use dbfilter().
I asize() the array to zero, and reconstruct the array with dbfilter() setted.

The first problem, is that the refreshing is very long, and when it is refreshed, I very often have a crash without output message when I want to click on an element, or if I use the keyboard to change the element.

I don't know if it's a bug or an error I made, but it's very ennoying.

I send an expurged version of my prog, You will have probably to modify pathes in ini file.
Thanks
A+

1 Attachments

Discussion

  • Aupeix Alain

    Aupeix Alain - 2024-08-25

    An improvment of the message:

    Hi,
    I have a dbf file which is put in an array, which is used by browse.
    This array contains the complete dbf.
    For searchng purpose, I use dbfilter().
    I asize() the array to zero, and reconstruct the array with dbfilter() setted.

    The first problem, is that the refreshing is very long (about one or two minutes),
    and when it is refreshed, I very often have a crash without output message when I
    click on an element, or if I use the keyboard to change the element.

    I don't know if it's a bug or an error I made, but it's very ennoying.

    Example :
    * search for name
    * amande
    => 3 recipes found
    * when refreshed , if you click on an element => crash

    I send an expurged version of my prog, You will probably need to modify pathes
    in ini file.

    Thanks
    A+

     
  • Aupeix Alain

    Aupeix Alain - 2024-08-25

    Hi,

    I notice that when moving the mouse over the browse area, the update is immediat. Is there a way to make it automatic without having to move the mouse over the area ?

    But after refresh, the crash is always present :(

    A+

     
  • Alexander S.Kresin

    1) To refresh a browse you need to add a line oBrw:Refresh() in your RunSearch()
    2) The crash is somewhere in your MajDisp() function. Commenting lines you may find which of them causes the crash
    3) It is absolutely wrong to place @ ... say in your MajDisp() - you simply add new label widgets every time the position in browse is changed. You need to add these labels one time and then in MajDisp() use the :SetText() method.

    Regards, Alexander.

     
  • Aupeix Alain

    Aupeix Alain - 2024-08-31

    Hi,

    I have put the content of MajDisp() in oMainWindow, but using now objects instead of char variables.
    I have SetText() in MajDisp()
    => The crash has gone :)
    I have add refresh() at the end of RunSearch(), and it's nos instantly refreshed.

    I add the corrected test

    You can close
    Thanks
    A+

     
  • Alexander S.Kresin

    • status: open --> closed
     

Log in to post a comment.