IBM Support

Dynamic creation of Rhapsody objects in C# results in multiple rhapsody.exe processes

Troubleshooting


Problem

Attempts Dynamic creation of IBM Rational Rhapsody objects by calling "new" operator in C# results in multiple rhapsody.exe processes on Windows Task Manager.

Symptom

Execute the following COM API code in C# causing new creation of rhapsody.exe process,

In below example, you would see two extra rhapsody.exe threads listing on Windows Task Manager.


RPCollection xyz = new RPCollection();
RPRelation xyz = new RPRelation();

Cause

The COM API of Rhapsody is designed to create new objects ONLY by using the methods that are implemented for the purpose.

Resolving The Problem

You should always call method createNewCollection of interface IRPApplication in order to expect correct tool behavior even if C#'s Intellivisor allows you accessing dynamic creation of RPCollection objects.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Documentation","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5;7.5.0.1;7.5.1;7.5.1.1;7.5.2;7.5.2.1;7.5.3;7.5.3.1;7.5.3.2;7.5.3.3;7.6;7.6.0.1;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":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21662404