Possible memory leak with dependable dict

The title says it and the attached examples shows it :wink:

Thanks for having a look!
MemTest.toe (4.28 KB)

Bug confirmed. Looking into how to fix

This bug is going to take a minute to clear up. In the meantime if you want to share more details about what you’re doing I can try to help find a workaround.

Thanks Ivan, I was using it to map dict values to cellAttribs, but I just do the changes manually now, so thats fine for now.

But I found another hurdle on this path and maybe you could help me with this:
What is the fastest way to set the bgColor of a whole row to a certain color?
Unfortunately I cannot use the rowAttribs, since I set the cellAttrib of some cells before.
See this topic: viewtopic.php?f=12&t=11885

It feels like doing a foor loop in python wouldn’t be a very nice solution and there should be something with list comprehensions or so (I am no python expert).

To set a row’s color you have two basic options…

  1. set all cellAttrib colors to None on the row then set the rowAttrib
  2. set all cellAttrib colors individually

Unfortunately there is not a nice list comprehension way to do #2 so you will indeed just have to loop through.

Ok, good to know, that this is the right way to do it.

Thank you Ivan.