Closed sa-exe closed 6 years ago
@jkoritzinsky any thoughts here as well?
I'll take a look.
@SomeAnon42 what version of SharpDX are you using?
That looks like it's using the old code-generator. (The current generated code doesn't look the same or seem to have the bug).
I'm using the latest version - 4.1.0. Previous versions do not have this problem.
Found the bug. It's a bug in SharpGenTools.Sdk 1.0.0. I think it's fixed in SharpGenTools master but I'm not positive. I'll update this issue when I've verified that it's fixed.
Yep. I ended up fixing this bug when I refactored all of the marshalling code for some of the upcoming features in SharpGenTools 1.1.0.
...when accessing the
Value
property of a nullable object without checking if itHasValue
. Seems like a codegen issue.Version used: 4.1.0