![]() |
Gallery.Items.Icons.RemoveAll() works incorrectly |
Post Reply ![]() |
Author | |
San0k ![]() Groupie ![]() Joined: 06 February 2008 Location: Ukraine Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() Posted: 22 February 2008 at 7:30am |
Hello,
I need dynamicly update images in gallery. I use for do it this code snip: Gallery.Items.Icons.AddIcon(icon.GetHicon().ToInt32(), item.Id, XTPImageState.xtpImageNormal); Before it I call RemoveAll() method of Icons collection, which really remove icons from collection (Count equals zero). BUT! When I look on Windows Task Manager "GDI Objects" column I view constantly growing value of objects. And when this value reach a 9 999 objects - application crash! All other references correctly disposed. Growing occur at AddIcon() string. QUESTION: How I can correctly remove Icons??? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Think you need release your icon.GetHicon also.
If you don't have 11.2.2 release I very recommend you update. See release notes for ImageManager.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
San0k ![]() Groupie ![]() Joined: 06 February 2008 Location: Ukraine Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() |
Thanks.
I have use AddBitmap() method instead AddIcon() and bitmap to icon convertion. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |