View Issue Details

IDProjectCategoryView StatusLast Update
0001403JEDI VCL00 JVCL Componentspublic2004-04-22 01:10
ReporterxerkanAssigned Touser72 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001403: TJvTrayIcon access violation
DescriptionIf there erase the PopupMenu associated with the trayicon of the form, when it pricks itself in this one to associate other it generates an error of the type access violation
Additional InformationSi se borra el PopupMenu asociado al trayicon del formulario, cuando se pincha en este para asociarle otro genera un error del tipo access violation
TagsNo tags attached.

Activities

user72

2004-03-01 09:33

  ~0003133

Last edited: 2004-03-01 10:04

That's pretty clumsy of us. We should know better. Do this:


protected
  ...
procedure Notification(AComponent: TComponent; Operation: TOperation);override;


implementation

procedure TJvTrayIcon.Notification(AComponent: TComponent; Operation: TOperation);
begin
  inherited;
  if Operation = opRemove then
  begin
    if AComponent = DropDownMenu then
      DropDownMenu := nil;
    if AComponent = PopupMenu then
      PopupMenu = nil;
    if AComponent = Icons then
      Icons := nil;
  end;
end;

edited on: 03-01-04 10:04

xerkan

2004-03-01 11:37

reporter   ~0003141

I have proved his code and it seems that it works perfectly

user72

2004-03-01 15:31

  ~0003147

Fixed in CVS as well

Issue History

Date Modified Username Field Change
2004-03-01 02:57 xerkan New Issue
2004-03-01 09:33 user72 Note Added: 0003133
2004-03-01 10:04 user72 Note Edited: 0003133
2004-03-01 10:15 user72 Status new => feedback
2004-03-01 11:37 xerkan Note Added: 0003141
2004-03-01 15:31 user72 Status feedback => resolved
2004-03-01 15:31 user72 Resolution open => fixed
2004-03-01 15:31 user72 Assigned To => user72
2004-03-01 15:31 user72 Note Added: 0003147
2004-04-22 01:10 user72 Status resolved => closed