Jump to content

[SOLVED] NotImplementedException in UnigineSharp_x64d


photo

Recommended Posts

Posted (edited)

Unigine 2.21

While trying to debug WPF integration, I has encountered this exception:

image.thumb.png.b6967e57fb88a8a1a56775d6a4b2fdae.png

I't occured when I'm opening Live property explorer in VS to examine my EngineView tree. The sandbox project with similar setup does not getting to this exception.

 

Edited by Alexander.Komarov
Posted

Hi Alexander,

The exception is raised only inside the debugger's inspection code. It has no effect on the running application, so you can dismiss the exception dialog (or turn off Break on user-unhandled exceptions for NotImplementedException) and continue debugging.

UNIGINE math value types such as ivec*, vec*, dvec*, ivec*, bvec, quat, Bit* implement IEnumerable<T>, so their components can be iterated with foreach.

Their enumerators correctly implement the generic IEnumerator<T>.Current property. However, the non-generic IEnumerator.Current property currently throws NotImplementedException. This does not affect normal foreach loops because C# uses the generic IEnumerator<T>.Current implementation when the collection implements IEnumerable<T>.

The sandbox project likely does not reproduce the issue because none of the objects accessible from its visual tree expose a UNIGINE math type. In the real project, an object somewhere under the EngineView visual tree, possibly a control property, binding source, or DataContext, exposes one of these types. This allows the property explorer to reach and enumerate it.

We would update C# in the future to get rid of this exception.

Thank you!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

  • silent changed the title to [SOLVED] NotImplementedException in UnigineSharp_x64d
×
×
  • Create New...