Code generated for a derived class is incorrect if a thread name is specified for the class

Technote (troubleshooting)


Problem(Abstract)

Classes derived from "Active" classes don't override certain "thread properties", such as ActiveThreadName or ActiveThreadPriority.

Symptom

If you model a derived class that extends an "Active" class, and override one or more of the following properties, the values you specify for the properties will not be reflected in the generated code.

  • CG:Class:ActiveStackSize
  • CG:Class:ActiveMessageQueueSize
  • CG:Class:ActiveThreadPriority
  • CG:Class:ActiveThreadName


Cause

The constructor required to override these fields does not exist for the base class.

Resolving the problem

Create the appropriate constructor manually and call it in order to propagate the values.

Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Rhapsody
Documentation

Software version:

7.2, 7.3, 7.4, 7.4.0.1, 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, 8.0, 8.0.1

Operating system(s):

Linux, Windows

Software edition:

All Editions

Reference #:

1616266

Modified date:

2012-12-06

Translate my page

Machine Translation

Content navigation