gircore / gir.core

A C# binding generator for GObject based libraries providing a C# friendly API surface
https://gircore.github.io/
MIT License
279 stars 29 forks source link

Long: Wrong size on windows #1066

Closed badcel closed 4 weeks ago

badcel commented 1 month ago

The native datatype long / ulong is on windows always 32bit. The dotnet 'long` is always 64 bit.

This can clash during runtime. Use CLong / CULong in the internal API to avoid passing some memeory to C which is bigger than expected.

Check parameters / return types for functions and callbacks.

Related to #782.