Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

invalid imagelist index - Delphi XE8

While working with Delphi XE8 multi-device app (android), this error keeps popping up: 'Invalid ImageList Index'.

Details:

[507A7424]{vcl220.bpl  } Vcl.ImgList.TCustomImageList.Delete (Line 664, "Vcl.ImgList.pas" + 2) + $1C
[0CC0E98C]{MultidevicePreview220.bpl} DesignPreviewFrm.TfrmDesignPreview.UpdateThumb (Line 744, "DesignPreviewFrm.pas" + 50) + $8
[0CC0E597]{MultidevicePreview220.bpl} DesignPreviewFrm.TfrmDesignPreview.TickTackTimer (Line 653, "DesignPreviewFrm.pas" + 27) + $7
[5073D11F]{vcl220.bpl  } Vcl.ExtCtrls.TTimer.Timer (Line 3093, "Vcl.ExtCtrls.pas" + 1) + $E
[5073D003]{vcl220.bpl  } Vcl.ExtCtrls.TTimer.WndProc (Line 3051, "Vcl.ExtCtrls.pas" + 4) + $7
[50172D80]{rtl220.bpl  } System.Classes.StdWndProc (Line 16882, "System.Classes.pas" + 8) + $0
[507CB41F]{vcl220.bpl  } Vcl.Forms.TApplication.ProcessMessage (Line 10352, "Vcl.Forms.pas" + 23) + $1
[507CB462]{vcl220.bpl  } Vcl.Forms.TApplication.HandleMessage (Line 10382, "Vcl.Forms.pas" + 1) + $4
[507CB795]{vcl220.bpl  } Vcl.Forms.TApplication.Run (Line 10520, "Vcl.Forms.pas" + 26) + $3

There is no imagelist used in the unit. In fact, the only component is a button.

EDIT: This happens mostly in design mode and has nothing to do with my code. Might be a bug in the IDE.

like image 418
hsh_Ar Avatar asked Oct 30 '22 23:10

hsh_Ar


1 Answers

1) Close Studio, ensure that the process "bds.exe" is not exists in the tast manager.

2) Go to the folder "C:\Program Files\Embarcadero\Studio\x.0\bin", looking for the file "MultidevicePreview240.bpl".

3) Rename it to "!MultidevicePreview240.bpl"

4) Run Studio and test.

another variant:

The trouble in one of TImage in a TLayout. Fully delete TLayout, add this one and image again — the problem should disappear.

like image 112
Pax Beach Avatar answered Nov 15 '22 05:11

Pax Beach