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 Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21662404