View Issue Details

IDProjectCategoryView StatusLast Update
0005843JEDI VCL00 JVCL Componentspublic2012-06-11 17:24
ReporterZodAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionduplicate 
Product Version3.45 
Target VersionFixed in Version 
Summary0005843: if the parent form is NOT a TCustomForm the function GetParentForm produces an EAcessViolation
Descriptionif the parent form is NOT a TCustomForm the GetParentForm function
produces an EAcessViolation.

Proposed solution with try .. except:

function TJvCaptionButton.GetParentForm: TCustomForm;
begin
  try
    if Owner is TControl then
      Result := Forms.GetParentForm(TControl(Owner))
    else
      Result := nil;
  except
    result := nil;
  end;
end;
TagsNo tags attached.

Relationships

duplicate of 0005820 resolvedobones EAccessViolation in TJvCaptionButton.WndProcAfter 

Activities

obones

2012-06-11 17:24

administrator   ~0019844

Please do not submit the same issue twice

Issue History

Date Modified Username Field Change
2012-03-26 18:31 Zod New Issue
2012-06-11 17:24 obones Note Added: 0019844
2012-06-11 17:24 obones Relationship added duplicate of 0005820
2012-06-11 17:24 obones Duplicate ID 0 => 5820
2012-06-11 17:24 obones Status new => resolved
2012-06-11 17:24 obones Resolution open => duplicate
2012-06-11 17:24 obones Assigned To => obones