Article View: borland.public.cppbuilder.nativeapi
Article #16723Re: SHGetFileInfo and system image list
From: Dmitry Mikhilov
Date: Thu, 01 May 2003 17:28
Date: Thu, 01 May 2003 17:28
33 lines
2268 bytes
2268 bytes
No, Windows are working as expected. But I noticed strange thing - when I fill relatively short lists with file icons, everything is OK. But when I show more than around 30 files (calling SHGetFileInfo in a loop), wrong icons sudedenly start to appear. Since that, new short lists become more or less regularly corrupted too - SHGetFileInfo starts to return wrong icon indexes :( There is no place in my code to corrupt anything and CodeGuard is silent as always :). Just adding TListItems and picking StateImage's indexes for them... Dmitry "Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote: news:3eb14f98$1@newsgroups.borland.com... > > "Dmitry Mikhilov" <dm1@fromru.com> wrote in message > news:3eb10399@newsgroups.borland.com... > > > Can the handle of the system image list be dynamically > > changed by Windows somehow and thus the old handle > > becomes invalid? > > Possibly. However, if that were to occur, you would be seeing the problem > effect Windows as a whole, not just your particular application only. In > such cases, the icon cache has probably become corrupted and needs to be > rebuilt. Either via recovery tools designed for that, or else by simply > rebooting the machine. > > > Gambit > >
Technical Details
Message-ID:
<3eb15950@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3eb0bdcd@newsgroups.borland.com> <18t1bv0lpjgqv1tblq09gh7u0j87hjtj2i@4ax.com> <3eb10399@newsgroups.borland.com> <3eb14f98$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,577f7a686a96c6b6 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-01 10:35:00 PST From: "Dmitry Mikhilov" <dm1@fromru.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3eb0bdcd@newsgroups.borland.com> <18t1bv0lpjgqv1tblq09gh7u0j87hjtj2i@4ax.com> <3eb10399@newsgroups.borland.com> <3eb14f98$1@newsgroups.borland.com> Subject: Re: SHGetFileInfo and system image list Date: Thu, 1 May 2003 21:28:09 +0400 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 195.131.110.226 Message-ID: <3eb15950@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051810128 195.131.110.226 (1 May 2003 10:28:48 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail