View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001911 | JEDI VCL | 00 JVCL Components | public | 2004-07-01 03:14 | 2004-08-02 12:25 |
Reporter | anonymous | Assigned To | obones | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.00 BETA | ||||
Target Version | Fixed in Version | ||||
Summary | 0001911: TJvSimpleXML, TJvSimpleXMLElems | ||||
Description | This method function Add(Value: TJvSimpleXMLElem): TJvSimpleXMLElem; overload; is dangerous, because you can add node from another TJvSimpleXML component and its causes crash in Clear method (after add node you free memory twice). | ||||
Tags | No tags attached. | ||||
|
What should we do? Create a new TJvSimpleXMLElem and assign Value to it or leave the method as it is now and add a parameter to select wether or not to copy (defaulting to not in order to keep the old behaviour) |
|
Maybe you should check what is the pointer of added TJvSimpleXMLElem parent component and raise exception if is diffrent then current pointer. It's possible ? |
|
I introduced a Notify concept so that a TJvSimpleXMLElems knows when an element is added in another one and prevent "double free" |
Date Modified | Username | Field | Change |
---|---|---|---|
2004-07-01 03:14 | anonymous | New Issue | |
2004-07-05 00:33 | obones | Status | new => assigned |
2004-07-05 00:33 | obones | Assigned To | => obones |
2004-07-05 23:19 | obones | Note Added: 0004695 | |
2004-07-06 23:54 | anonymous | Note Added: 0004709 | |
2004-08-02 12:25 | obones | Status | assigned => resolved |
2004-08-02 12:25 | obones | Resolution | open => fixed |
2004-08-02 12:25 | obones | Note Added: 0004870 |