IceYGO / ygosharp

A C# implementation of an ygopro duel server, using the ocgcore library.
MIT License
49 stars 17 forks source link

Upgrading to .NET 4.5 #24

Open SevenUp96 opened 5 years ago

SevenUp96 commented 5 years ago

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/