Page 1 of 1

TSysImageList

PostPosted: April 16th, 2010, 5:49 pm
by Vadim
Hello! I'm sorry for my not very good english ). I have one problem with use TSysImageList component. When i will want to get icons of folder 'C:\Windows\assembly\*.*' , i have got error 'access violation...'. Im have this problem with this folder only, other folders works without errors.Im use Windows 7 64-bit.

Re: TSysImageList

PostPosted: April 16th, 2010, 9:41 pm
by Kambiz
I tried same folder on my Windows 7 Ultimate 64bit, and no error occurred.

Are you sure the problem is not because of something else?

Re: TSysImageList

PostPosted: April 17th, 2010, 4:09 am
by Vadim
Hello! Im use SysImageList in my component TVirtualFileList (similar Total Commander, ListView with 5 columns - Name, Ext, Size, Date, Attr), if you need, i can to send you code of my component.
This code i wrote for example. If i will try to run, i will get error - sometimes "access violation...", sometimes "stack overflow at 0x748ee284". If to change string "c:\windows\assembly\GAC" on other string, example "C:\windows\assembly", this code work without errors.

Code: Select all
procedure TForm1.FormShow(Sender: TObject);
var
  i: integer;
begin
  i:= SysImageList1.ImageIndexOf('C:\Windows\assembly\GAC', false);
end;

Re: TSysImageList

PostPosted: April 18th, 2010, 7:14 am
by Kambiz
I checked it out once again, and it is not TSysImageList.

Re: TSysImageList

PostPosted: April 18th, 2010, 8:03 am
by Vadim
:oops: ) Sorry for my question, i reinstalled TSysImageList and i havnt problems with this component now.
Thanks for attention, theme it is closed.