txdv / LibuvSharp

.NET bindings for libuv
176 stars 41 forks source link

Marshalling of generic arguments like Action<> and Func<> throws runtime errors on .NET. #6

Closed txdv closed 10 years ago

txdv commented 10 years ago

Doesn't however on mono. I will address this issue hopefully today.

I think I will take a strict look of what is supported by the .NET runtime and create a mono strict option so verification can be made easier.

Mono is able to pin down a lot of non blittable. Even normal clr objects and all the fields can be accessed via a pointer.

txdv commented 10 years ago

0879ec1c261340ab40c6fbc1507cd7e58bcdc664 fixes this issue in UVFile.

However the UVFile code still doesn't work, some access violation.

txdv commented 10 years ago

As of 31f1666e754a750e67ad74dd0aefbefa6808d34a the HashStream example works on windows too.