Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003572 [JEDI VCL] 00 JVCL Components major always 2006-03-10 15:44 2006-04-07 06:34
Reporter ChrisUeberall View Status public  
Assigned To obones
Priority normal Resolution fixed  
Status resolved   Product Version 3.10
Summary 0003572: accessing TJvDesignPanel by name after using LoadFromFile raises an EAccessViolation
Description unit 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 Information using JVCL 3.2 & D7
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0009014)
obones (administrator)
2006-04-07 06:34

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


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