IBM Support

Compiler Error: "OMThread() : Candidate expects 4 arguments, 5 provided" when trying to use Rhapsody SXF profile

Troubleshooting


Problem

Create an active thread named CTask100ms with below properties:
task name: "CTask100ms"
priority: OMOSSpecific::getNormalPriority()
stacksize = 500
eventQueueLength = 10
When I generated code, it generates an additional 5th argument "false".
//## class
CTask100ms CTask100ms::CTask100ms(void) : OMThread("Task100ms", OMOSSpecific::getNormalPriority(), 300, 10, false)
When building the code in rhapsody under SXF framework settings it shows error:
"OMThread() : Candidate expects 4 arguments, 5 provided"

Document Location

Worldwide

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Component":"","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Versions","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

ibm11119147