View Issue Details

IDProjectCategoryView StatusLast Update
0004170JEDI VCL00 JVCL Componentspublic2008-02-21 06:42
Reporteralex_istAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.32 
Target VersionFixed in Version3.34 
Summary0004170: JvImagesViewer does raise an exception on JvImagesViewer.Delete
DescriptionI put an TJvImagesViewer onto my Delphi form and set a directory in Object Inspector.

An exception raise in run-time mode when I'm trying to delete one item.
JvImagesViewer.Delete(i) or JvImagesViewer.Items[i].Delete.
TagsNo tags attached.

Activities

obones

2007-07-10 02:53

administrator   ~0013557

Please provide the zipped sources of a sample exception showing this.

2007-07-10 03:49

 

JvImagesViewer.zip (365,360 bytes)

alex_ist

2007-07-10 03:54

reporter   ~0013559

Zipped sources file attached

alex_ist

2007-07-13 01:14

reporter   ~0013570

Is there anything ?

obones

2007-07-13 02:18

administrator   ~0013571

Well, we are short on resources at this time of the year so this will be looked at as soon as possible but it may take a few days/weeks.

alex_ist

2007-07-13 02:49

reporter   ~0013572

ОК

jeronimo

2007-07-14 03:35

reporter   ~0013574

This error is in the file JvCustomItemViewer.pas


procedure TJvCustomItemViewer.Delete(Index: Integer);
begin
  Deleted(Items[Index]);
  TObject(FItems[Index]).Free;
  FItems.Delete(Index);

  if SelectedIndex >= Count then
    SelectedIndex := Count - 1;
end;

In the line

TObject(FItems[Index]).Free;
La solution is deleted line
First it tries to release the memory and soon to erase it with which the error takes place

obones

2007-10-12 07:08

administrator   ~0013921

I have just tried your demo with the very latest SVN content, I'm not seeing any problems with this.

obones

2008-02-21 06:41

administrator   ~0014250

No reactions, I'm assuming this is fixed by the latest revisions.

Issue History

Date Modified Username Field Change
2007-07-10 02:34 alex_ist New Issue
2007-07-10 02:53 obones Note Added: 0013557
2007-07-10 02:53 obones Status new => feedback
2007-07-10 03:49 alex_ist File Added: JvImagesViewer.zip
2007-07-10 03:54 alex_ist Note Added: 0013559
2007-07-13 01:14 alex_ist Note Added: 0013570
2007-07-13 02:18 obones Note Added: 0013571
2007-07-13 02:49 alex_ist Note Added: 0013572
2007-07-14 03:35 jeronimo Note Added: 0013574
2007-10-12 07:08 obones Note Added: 0013921
2008-02-21 06:41 obones Status feedback => resolved
2008-02-21 06:41 obones Fixed in Version => Daily / SVN
2008-02-21 06:41 obones Resolution open => fixed
2008-02-21 06:41 obones Assigned To => obones
2008-02-21 06:41 obones Note Added: 0014250