View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003572 | JEDI VCL | 00 JVCL Components | public | 2006-03-10 15:44 | 2006-04-07 06:34 |
Reporter | ChrisUeberall | Assigned To | obones | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.10 | ||||
Target Version | Fixed in Version | 3.30 | |||
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. | ||||
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 |