IBM Support

Building Rational Rhapsody project results in error "C2385: ambiguous access of 'setActiveContext'"

Troubleshooting


Problem

Attempt to realize an interface and inheriting a class with triggered operation result in error “C2385: ambiguous access of ‘setActiveContext’" while building IBM Rational Rhapsody project.

Symptom

The full error message is as follows:

Create a sample Rational Rhapsody project with an Interface say Interface_1 and two classes say Base_Class and Derived_Class.

  1. Create a triggered operation say Trigger() in Base_class.

  2. Realize Interface_1 and inherit Base_class in the Derived_Class.

  3. Create a statechart for Derived_Class with State_1 and State_2. Call Trigger() to transit from State_1 to State_2.

  4. Save and build the Rational Rhapsody project. Verify the error


[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.6.1;7.6.1.1;7.6.1.2;7.6.1.3;7.6.1.4;8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.5","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
27 May 2022

UID

swg21663926