Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003982 [JEDI VCL] 00 JVCL Components tweak N/A 2006-11-05 22:59 2006-11-06 02:17
Reporter EinWill View Status public  
Assigned To obones
Priority normal Resolution fixed Platform
Status resolved   OS
Projection none   OS Version
ETA none Fixed in Version 3.30 Product Version 3.20
  Target Version Product Build
Summary 0003982: Deleting the component that is assigned to TJvDBSpinEdit.DataSource property produce an exception
Description Assume, that we have TJvDBSpinEdit.DataSource equals to MyDataSource1. Now we delete MyDataSource1. JvDBSpinEdit still contains a link to this component and it produce an exception.

Reason: TJvDBSpinEdit.SetDataSource calls DataSource.FreeNotification,
        but Notification method is never handled.

Solution: We should override protected method Notification like this:
procedure TJvDBSpinEdit.Notification(AComponent: TComponent;
  Operation: TOperation);
  inherited Notification(aComponent, Operation);
  if (Operation = opRemove) and (FDataLink <> nil) and
     (aComponent = DataSource) then DataSource := nil;
Steps To Reproduce
Additional Information
Tags No tags attached.
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2006-11-05 22:59 EinWill New Issue
2006-11-06 02:17 obones Status new => resolved
2006-11-06 02:17 obones Fixed in Version => Daily / SVN
2006-11-06 02:17 obones Resolution open => fixed
2006-11-06 02:17 obones Assigned To => obones

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker