View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002761 | JEDI VCL | 00 JVCL Components | public | 2005-03-16 02:40 | 2005-03-16 03:21 |
| Reporter | anonymous | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | open | ||
| Product Version | 3.00 BETA 2 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0002761: ClearObjectList and ClearList function raise a error when assign a TComponentList value. | ||||
| Description | ClearObjectList and ClearList function raise a error when assign a TComponentList value.but the TList is ok. ClearObjectList in JclSysUtils.pas. ClearList in JvJCLUtils.pas. | ||||
| Tags | No tags attached. | ||||
|
|
TComponentList is a TObjectList and does not need the ClearList function because it frees it's items itself. Calling ClearList() on a TObjectList (or derived class) will always fail (if not empty) because the items are freed and the the List.Clear method is invoked which on a TObjectList tries to free the items again. |