English

Bug: Aggregating in ESRI network feature fails using COM_INTERFACE_ENTRY_AUTOAGGREGATE_BLIND

Description

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.

Cause

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.

Workaround

  1. Use COM_INTERFACE_ENTRY_AGGREGATE_BLIND in the COM_MAP.
  2. Aggregate the ESRI network feature in the FinalConstruct method.