Bug: Aggregating in ESRI network feature fails using COM_INTERFACE_ENTRY_AUTOAGGREGATE_BLIND
When using Active Template Library (ATL) to create a custom feature, accessing the feature fails if the ATL COM_MAP is specified using COM_INTERFACE_ENTRY_AUTOAGGREGATE_BLIND.
The ATL macro is prematurely releasing the last reference to the inner aggregated network feature in its constructor. This is due to the current implementation of NetworkFeature.
- Use COM_INTERFACE_ENTRY_AGGREGATE_BLIND in the COM_MAP.
- Aggregate the ESRI network feature in the FinalConstruct method.