View Issue Details

IDProjectCategoryView StatusLast Update
0004021JEDI VCL00 JVCL Componentspublic2007-06-19 06:34
ReporterapiersonAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.10 
Target VersionFixed in Version3.34 
Summary0004021: TJvTimeItem Data Property
DescriptionThe Data property of TJvTimeItem lets assign some User Stuff. But there is no way to free the data structure (like in a OnDeletion Event of TListView).
TagsNo tags attached.

Activities

outchy

2007-01-03 12:57

administrator   ~0010503

Could you describe a case where items are deleted from JVCL code?

apierson

2007-01-19 10:11

reporter   ~0010568

Last edited: 2007-01-19 10:15

When I create TJvTimeItem-Items in a TJvTimeLine then I can assign e.g. a self made record.

type
  TMyData = record
    stuff: string;
  end;
  PMyData = ^TMyData;
var
  P: PMyData;
begin
  New(P);
  with TimeLine.Items.Add do
  begin
    Data := P;
    Remove;
  end;
end;

In this example the record behind Data is not freed and there is not event triggered where I can call a Dispose(PMyData(Data)).

obones

2007-06-19 06:33

administrator   ~0013429

I have added an OnDestroy event handler on TJvTimeItem, use this.

Issue History

Date Modified Username Field Change
2006-12-15 09:56 apierson New Issue
2007-01-03 12:57 outchy Note Added: 0010503
2007-01-08 14:47 obones Status new => feedback
2007-01-19 10:11 apierson Note Added: 0010568
2007-01-19 10:15 apierson Note Edited: 0010568
2007-01-19 10:15 apierson Note Edited: 0010568
2007-06-19 06:33 obones Status feedback => resolved
2007-06-19 06:33 obones Fixed in Version => Daily / SVN
2007-06-19 06:33 obones Resolution open => fixed
2007-06-19 06:33 obones Assigned To => obones
2007-06-19 06:33 obones Note Added: 0013429