View Issue Details

IDProjectCategoryView StatusLast Update
0003572JEDI VCL00 JVCL Componentspublic2006-04-07 06:34
ReporterChrisUeberallAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.10 
Target VersionFixed in Version3.30 
Summary0003572: accessing TJvDesignPanel by name after using LoadFromFile raises an EAccessViolation
Descriptionunit JvDesignSurface
method TJvDesignSurface.LoadFromFile replaces all properties of TJvDesignPanel including property 'Name'.

the following code raises an EAccessViolation if the stored TJvDesignPanel's name differs from the one which loads the form:

myJvDesignPanel.LoadFromFile('test.cfrm');
myJvDesignPanel.Surface.MessengerClass := TJvDesignDesignerMessenger;

resolution:
I changed the following method:

function TJvDesignSurface.LoadFromFile(const AFileName: string): TJvDesignSurface;
var
  cn : string; // ContainerName
begin
  BeginUpdate;
  Container.DestroyComponents;
  cn := Container.Name;
  DesignLoadComponentFromFile(Container, AFileName, ReaderError);
  Container.Name := cn;
  EndUpdate;
  Result := Self;
end;
Additional Informationusing JVCL 3.2 & D7
TagsNo tags attached.

Activities

obones

2006-04-07 06:34

administrator   ~0009014

This is now in CVS.

Issue History

Date Modified Username Field Change
2006-03-10 15:44 ChrisUeberall New Issue
2006-04-07 06:34 obones Status new => resolved
2006-04-07 06:34 obones Resolution open => fixed
2006-04-07 06:34 obones Assigned To => obones
2006-04-07 06:34 obones Note Added: 0009014