Bug in uavariant.cpp?

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
wim
Hero Member
Hero Member
Posts: 24
Joined: 13 Jul 2010, 15:20

Bug in uavariant.cpp?

Post by wim »

Hello,

it seems that UaVariant::toExpandedNodeIdArray is always returning a OpcUa_BadOutOfRange error. I took a look at the source code and it seems that at line 8510 there is a check for the wrong datatype (OpcUaType_NodeId instead of OpcUaType_ExpandedNodeId). The same applies to UaVariant::toStatusCodeArray.

I'm using v1.3.2 (source code version).

If I'm correct, would it be possible to fix this in the next release?

Thank you,

Wim

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re: Bug in uavariant.cpp?

Post by Support Team »

Hi wim,

This issue was already fixed in October last year after release of version 1.3.2. The same issue was also fixed for toStatusCodeArray().
The fix will be contained in the next release 1.4.

Best Regards,
Unified Automation Support Team

wim
Hero Member
Hero Member
Posts: 24
Joined: 13 Jul 2010, 15:20

Re: Bug in uavariant.cpp?

Post by wim »

Thanks a lot!

Wim

Post Reply