Errors and Warnings flicker

Posts   
 
    
Puser
User
Posts: 228
Joined: 20-Sep-2012
# Posted on: 22-Nov-2019 09:51:56   

I have many warnings in the designer which I ignore because it has to do with differences in mappings of Access and Sql, which I wont go into, it does not matter. The thing is, when I set the toggle to show these warnings, and I make a change in a field in an entity, the validation runs. Now the screen belows flickers for a few seconds. When there are less items (when the toggle is to hide warnings) its fine.

I had this once too in my app. I think it has to do with an ObservableCollection that is filled one by one, or with the 'wrong' AddRange method which triggers change notifications pér item. You could try to create a new List first and the new up an ObservableCollection with the new list. But then the whole use of ObservableCollection might be useless and a normal List would suffice. As long as the DataGrid/Treelist? gets its notification that the list changed.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39612
Joined: 17-Aug-2003
# Posted on: 22-Nov-2019 10:54:52   

I think you're right wrt the events that cause this. We have several 'throttle' objects in place in the designer where they collect events that are the same (like 'IsChanged') and would result in a repaint over and over again, and we'll see if we need one here too.

The validation sends messages to the message handler which raises the event that the set has changed, so we can't bundle things there, but at the display area we can perhaps change things a bit.

Frans Bouma | Lead developer LLBLGen Pro
Puser
User
Posts: 228
Joined: 20-Sep-2012
# Posted on: 22-Nov-2019 15:34:32   

great!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39612
Joined: 17-Aug-2003
# Posted on: 22-Nov-2019 16:20:01   

We'll see if we can fix it in v5.6 next week, otherwise we'll postpone it till v5.7, but I suspect it's not that hard to do.

Frans Bouma | Lead developer LLBLGen Pro
Puser
User
Posts: 228
Joined: 20-Sep-2012
# Posted on: 22-Nov-2019 16:21:00   

v5.7 would suffice. I wont go installing newer versions in the coming couple of months.

AHenry
User
Posts: 17
Joined: 30-Jan-2013
# Posted on: 26-May-2020 21:00:06   

I ran into this trying to open an old project with a couple thousand warnings in 5.6.2. It was pretty much impossible to correct things in the editor while the warning list is shown.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 27-May-2020 00:07:30   

Please upgrade to v.5.7, this has been fixed in it.