ERROR - IndexNumerator().AdjustInRangeByObject

StatusIDPriorityType
Closed39713CriticalBug
Profile Reply
Gabriele Client

After updating to version 20.1.4
This code throws an error if the class derives from BaseObject

private void SwitchIndices(IIndexNumberSupport currentObject, IIndexNumberSupport targetObject)
{
if (currentObject == null || targetObject == null)
return;

int oldIndex = currentObject.IndexNumber;
int newIndex = targetObject.IndexNumber;

ObjectSpace.Xafari().IndexNumerator().AdjustInRangeByObject((IIndexNumberSupport)currentObject, oldIndex, newIndex);
ObjectSpace.Xafari().IndexNumerator().AdjustInRangeByObject((IIndexNumberSupport)targetObject, newIndex, oldIndex);
}
ERROR:

System.InvalidCastException: Cast from 'System.String' to 'System.Guid' is invalid.

Replies

User Description Posted On
MariyaVoytovich Agent

Hello!

Which version of Xafari are you currently using?

Regards,
Mariya
On behalf of Xafari Client Services Team

Gabriele

Xafari.Framework-20.2.3011.2258

Regards,
Gabriele

MariyaVoytovich Agent

Hello!

Thanks for reporting the issue.

Regarding the error that you reported I can say that all information submitted to our development team.
Also a relevant issue [102.224696] registered in our issue tracking system.
You may reference to this number later to find out its state.

Feel free to contact us if you have any questions.

Regards,
Mariya
On behalf of Xafari Client Services Team

MariyaVoytovich Agent

Hello,

I’m sorry for the delayed answer.
We fixed this bug in the Xafari x11 20.2.6011.2304 and the Xafari x11 21.1.3011.2308. You can download it from https://galaktika-soft.com/xafari/download.

Please let me know if this helps.

Regards,
Mariya
On behalf of Xafari Client Services Team

× This ticket is closed.

Write US