IBM Support

Loading a view of a module in Rational DOORS 9.6.1.10 (or higher) results in warning: "Argument 1 (32 bit int) was passed with a 64 bit value"

Troubleshooting


Problem

Attempts to open a view of a module in IBM Rational DOORS 9.6.1.10 (or higher) gives a DXL warning which included the message "Argument 1 (32 bit int) was passed with a 64 bit value"

Symptom

The DXL interaction window contains messages such as:
-R-W- DXL: <Line:36> Argument 1 (32 bit int) was passed with a 64 bit value
-R-W- DXL: <Line:69> Argument 1 (32 bit int) was passed with a 64 bit value
Backtrace:
<Line:212>
<Line:373>

Cause

Since the Fix Pack 9.6.1.7, variables of type integer are expected to be 32-bit long (back again as it used to be in 32-bit Rational DOORS clients).

However in the particular situation described in this technote, this warning is only displayed when using Rational DOORS client 9.6.1.10 (or higher).

Diagnosing The Problem

This warning message has been introduced to warn the user when an instruction tries to set an integer variable a value greater than 32-bit. When doing so, the 4 most significant bytes are ignored as the example below demonstrates it:
int i
i = 4294967300 // 2^32 + 4
print i

In Rational DOORS client 9.6.1.10 (or higher), the output of the script above is:
-R-W- DXL: <Line:6> Assigning 64 bit value to 32 bit int
4

Resolving The Problem

The way to solve this problem depends on the exact cause. This technote only focuses on one possible cause: loading a view provided by IBM Rational DOORS Requirement Management Framework Add-On (RMF).

Various views provided in RMF generic model contain a layout DXL column that generates this error. For instance the view "30. Compliance Matrix" contains two such layout DXL columns: "N° §" and "satisfied by...".

The same piece of code is the cause of this warning in all the problematic layout DXL columns.

int str_end = sizeof temp

where temp is a variable of type integer.
Replacing the function sizeof by the function length solves the problem:

int str_end = length temp

Disclaimer

All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.


Here are the archives of the two project supplied by RMF with the problematic layout DXL columns fixed:

project_archives_0.zip

7 DXL scripts also contain the same error. Here are the corrected files:
irdrmfao\libviews\other_column\heading_number.dxl
irdrmfao\libviews\rcm_column\show-rcmimpact.dxl
irdrmfao\libviews\rcm_column\show-rcmsuspects.dxl
irdrmfao\libviews\traceability_column\show-inlinks.dxl
irdrmfao\libviews\traceability_column\show-outlinks.dxl
lib\dxl\addins\irdrmfao\layout\show-inlinks.inc
lib\dxl\addins\irdrmfao\layout\show-outlinks.inc

scripts_0.zip

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSKR2T","label":"IBM Engineering Requirements Management DOORS"},"Component":"Rational DOORS Requirements Management Framework Add-on","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.6.1.10;9.6.1.11","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
01 May 2020

UID

swg22014810