IceYGO/ygosharp

Upgrading to .NET 4.5

Opened this issue · 0 comments

Hi,

I really like ygosharp and I think it's the cleanest code out there. I upgraded the wrapper to the newest .NET core but I get an AccessViolation error on protected memory on the pointers. Please see the stackexchange below:

https://stackoverflow.com/questions/56085130/acess-violation-protected-memory-when-editing-a-passed-intptr-from-c-sharp-to-na

It works perfectly on .NET 4.0 but anything 4.5 or higher, gives this error:

https://cdn.discordapp.com/attachments/571807944933376033/576498109123788811/unknown.png

Any comments or advice would be appreciated. Thanks! @IceYGO

There are many advantages to upgrading to newest .NET core. It's cross-platform, allowing you to run the server on any platform (mac, linux, windows) and the performance is way better on the heavy tasks like LINQ, regex, and collections. By 2020, we'll have .NET 5.0.
https://devblogs.microsoft.com/dotnet/introducing-net-5/