DataType problems regarding Array/Structure in 8.5.1904.2401

4 posts / 0 new
Last post
AndreasAtPowel
DataType problems regarding Array/Structure in 8.5.1904.2401

Hi!

We're having some problems with the latest version, 8.5.1904.2401.
We're trying to write to a register and we must send an Array of Structures.
In earlier versions, 8.5.1903.2001 for example, we created a GXDLMSData object and loaded it with a object[] containing an object[].
However in 8.5.1904.2401 this no longer works so I looked through the Gurux code and found that if we instead fed our GXDLMSData object with a List<object> containing object[] we would get the Array of Structures we needed.
However in the SetArray function in Internal/GXCommon.cs when Gurux tries to convert the Array to DLMS bytes it fails when it tries to cast this List<object> to object[].
When modify this code to take the List<object> type into account I get it all to work.

This seems to us like a bug.
So can you please confirm that this is a bug and that there has been recent changes in Gurux.DLMS related to this?
If not could you direct us in how to achieve an Array of Structures in our GXDLMSData object.

Regards Marcus

Kurumi
Kurumi's picture

Hi Marcus,

Thank you for let me know from this. We'll fix this ASAP.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Kurumi
Kurumi's picture

Hi Marcus,

This is fixed and tests are started. We'll release a new version later today.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

AndreasAtPowel

Thanks Mikko!
After a couple of days working with the new version averything seems to works quite well.

Best Regards
Marcus