GA-ASI

9 posts / 0 new
Last post
Offline
Last seen: 1 year 7 months ago
Joined: 03/16/2016
Posts: 9
Cannot convert sbyte to char

Hi RTI,

I am migrating from 5.3 to 6.1 RTI DDS Connext. The programming language is C# in my implementation. Other peers could be JAVE, C, C++ etc.

C# has a sbyte primitive type. In 5.3, I used to do this to convert sbyte to char and it has been working for the whole sbyte range -128 to 127

dynamicData.set_char(memberName, memberId, Convert.ToChar((byte)( (sbyte) memberValue) ));

In 6.1, the SetValue method is not happy with the converted char when the sbyte is negative. I get this exception.

Organization:
3 posts / 0 new
Last post
Offline
Last seen: 1 year 7 months ago
Joined: 03/16/2016
Posts: 9
Can't create participant with 6.1

Hi RTI,

I am migrating from version 5.3 (.NET Framwork) to 6.1.0.2 (Rti.ConnextDds Nuget package) but I can't even get a participant created.

Here is the code.

var qosProvider = new QosProvider(./Qos/MyQos.xml);

var participantQos = qosProvider.GetDomainParticipantQos("MyLibrary::MyParticipant");

var participant = DomainParticipantFactory.Instance.CreateParticipant(1, particpantQos);

The CreateParticipant threw an exception in native code. The exception did not give much information.

Organization:
Subscribe to RSS - GA-ASI