View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005513 | DarkRadiant | GUI | public | 29.01.2021 03:54 | 29.01.2021 04:04 |
Reporter | greebo | Assigned To | |||
Priority | normal | Severity | normal | Reproducibility | sometimes |
Status | confirmed | Resolution | open | ||
Product Version | 2.11.0 | ||||
Target Version | 2.11.0 | ||||
Summary | 0005513: Change wxDataViewItem ID from TreeModel::Node* to something safer | ||||
Description | Related to 0005508. There are situations where TreeModel nodes are destroyed and their memory is free'd while wxDataViewItems are still owned by various controls. There's no way to tell for any of these classes whether a wxDataViewItem pointer is valid or stale, we've had multiple crashes because of this. Subclassing wxDataViewItem is possible but will not fix the problem, since it is held by value in several places. The suggested approach would be to change the meaning wxDataViewItem's contained ID member to hold a (numeric) handle instead of a raw TreeModel::Node* pointer. | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
29.01.2021 03:54 | greebo | New Issue | |
29.01.2021 03:54 | greebo | Status | new => confirmed |
29.01.2021 03:54 | greebo | Relationship added | related to 0005508 |
29.01.2021 03:55 | greebo | Relationship added | related to 0005498 |
29.01.2021 04:04 | greebo | Summary | Change wxDataViewItem ID from Node* to something safer => Change wxDataViewItem ID from TreeModel::Node* to something safer |