View Issue Details

IDProjectCategoryView StatusLast Update
0004003JEDI VCL00 JVCL Componentspublic2006-11-23 05:26
ReporterShtirlizAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version3.30 
Summary0004003: TJvDockVSPopupPanelSplitter: Assertion failure
DescriptionThe TJvDockVSPopupPanelSplitter class (JvDockVSNetStyle unit):
SetVSPopupPanel method - write method of VSPopupPanel property - asserts that assigned value may not be nil (first statement in the method).
On the other hand, this class in its Notification method assigns nil to its VSPopupPanel property, that causes assertion failure.
TagsNo tags attached.

Activities

obones

2006-11-23 01:50

administrator   ~0010443

Please describe with more details, I have a hard time understanding what you want.

Shtirliz

2006-11-23 04:35

reporter   ~0010444

I want to see this code working without assertion failures. :)

procedure TJvDockVSPopupPanelSplitter.Notification(AComponent: TComponent;
  Operation: TOperation);
begin
  inherited Notification(AComponent, Operation);
  if (Operation = opRemove) and (AComponent = VSPopupPanel) then
    VSPopupPanel := nil;
end;

VSPopupPanel is property so "VSPopupPanel := nil" is "TJvDockVSPopupPanelSplitter.SetVSPopupPanel(nil)".

procedure TJvDockVSPopupPanelSplitter.SetVSPopupPanel(Value: TJvDockVSPopupPanel);
begin
  { Dirty }
  Assert((Value <> nil) and (Value is TJvDockVSPopupPanel));
  FVSPopupPanel := Value;
end;

Assert causes assertion failure becase Value = nil.

obones

2006-11-23 05:26

administrator   ~0010445

The solution was to change the code in Notification, not to remove the assertion

Issue History

Date Modified Username Field Change
2006-11-22 06:48 Shtirliz New Issue
2006-11-23 01:50 obones Note Added: 0010443
2006-11-23 01:50 obones Status new => feedback
2006-11-23 04:35 Shtirliz Note Added: 0010444
2006-11-23 05:26 obones Status feedback => resolved
2006-11-23 05:26 obones Fixed in Version => Daily / SVN
2006-11-23 05:26 obones Resolution open => fixed
2006-11-23 05:26 obones Assigned To => obones
2006-11-23 05:26 obones Note Added: 0010445