LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ajout d'images dans une table

Je gère une table de 2500 lignes avec des colonnes de différents types. Dans la première colonne, je veux afficher des icônes. Mais cela pose de sérieux problèmes de performance et finit par planter sur un "Out of memory".

(J'utilise CVI 6.0)

Merci d'avance pour vos réponses.
0 Kudos
Message 1 of 3
(2,974 Views)
I apologize for responding in english, but my French is barely good enough to read, let alone write...

If I understand correctly, you need to add 2500 images to a table, and you're running out of memory. My suggestion is, if many of those images are the same, wherever you have a contiguous set of cells that use the same image, you should use FillTableCellRange to set the image. This way, the table knows that those are all the same image, and it will not create individual bitmaps to store them in. Otherwise, if you set the images one at a time, it will not know when they're identical, and will store individual bitmaps for each cell.

Luis
NI
Message 2 of 3
(2,970 Views)
It works ! Thanks a lot for your help !
0 Kudos
Message 3 of 3
(2,945 Views)