Comments (11)
Thank you for your report and suggestion.
I tested with Mono 2.8.10 and it was fine, but didn't do with 3.0.x. I'll investigate and fix this issue.
In addition, I agree that MsgPack.dll should be unified for .NET Framework and Mono. The difference is little performance optimization as you see except some unit test code does not work on Mono because of it uses minor Code Access Security API.
from msgpack-cli.
Wow, you're fast :)
Thanks four your work on this phenomenal project!
from msgpack-cli.
I tried Mono 3.0.6 on Windows, and TypeInitializationException was not thrown.
Would you tell me actual version/platform when you faced this issue? Or, would you give me a stack trace when you repro this issue? I'm afraid this issue is MacOS platform specific because I don't have mac.
from msgpack-cli.
It was a openSuse 13.1 XFCE with the mono-complete packet installed
from msgpack-cli.
Stacktrace:
System.TypeInitializationException: An exception was thrown by the type initializer for MsgPack.MessagePackString ---> System.Exception: The requested feature is not implemented.
at System.Reflection.MethodBase.get_IsSecuritySafeCritical () [0x00000] in /home/abuild/rpmbuild/BUILD/mono-3.0.6/mcs/class/corlib/System.Reflection/MethodBase.cs:269
at MsgPack.MessagePackString..cctor () [0x00000] in :0
--- End of inner exception stack trace ---
at MsgPack.MessagePackObject..ctor (System.String value) [0x00000] in :0
at MsgPack.MessagePackObject.FromObject (System.Object boxedValue) [0x00000] in :0
at testmsgpack.MainClass.Main (System.String[] args) [0x00001] in /home/chris/testmsgpack/testmsgpack/Main.cs:11
Main method pretty much has one line in it: MessagePackObject.FromObject("test")
from msgpack-cli.
I remember that it is known mono issue when I saw your stack trace. Mono does not fully implement Code Access Security API, so MessagePackString does not determine security restriction that whether it can use memcpy native function or not.
Would you ensure that you compile MsgPack.dll from MsgPack.mono.sln or just specifying compiler constants "Mono"?
from msgpack-cli.
It works fine with the MsgPack.mono.sln. I get the error only with the NuGet package 0.4.0.
from msgpack-cli.
Sorry, I misunderstood your edit "Works fine with your source compiled into my project."
from msgpack-cli.
Sorry for the late answer.
I think this can be closed. I should have read your wiki pages more carefully, it clearly states that on mono it needs to be built.
from msgpack-cli.
I unified Mono source on 0.5 line except some unit testing codes which are not available in Mono because of API incompatibilities.
https://github.com/msgpack/msgpack-cli/tree/0.5
Thank you for your suggestion.
from msgpack-cli.
Close because 0.5.0 support it.
from msgpack-cli.
Related Issues (20)
- Add a non-generic override to SerializerRepository
- EnumMemberAttribute does not work. (expectedly)
- Type Object in MessagePack HOT 1
- GetMemberName() causes NullReferenceException when using MessagePackSerializer.Get<T>() in Xamarin iOS
- [Unity][il2cpp]'class' is not registered in this resolver,resolver.StandardResolver HOT 2
- How to serialize and deserialize a List member in a class HOT 2
- Problem deserializing byte array - InvalidOperationException caused by Decoders.InvalidArrayHeader.Read call HOT 4
- about LZ4 HOT 1
- Unable to cast object of type on netcore HOT 1
- Custom Serialisation docs appear to be out of date. HOT 1
- PackAsync & UnpackAsync not working when passing data continuously using for loop c# HOT 1
- The unpacked value is not expected type HOT 2
- Authenticode Signing? HOT 2
- DateTime serialization and deserialization timezone HOT 3
- Enum Deserialization Not working? HOT 1
- Serializer.Unpack Continuosly Stream of Data => High Memory Usage HOT 3
- Serialization / deserialization speed optimizations HOT 2
- Serialization field order by declaration order HOT 3
- Add additional TFM do dependencies can be optimised HOT 2
- Set additional package metadata
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msgpack-cli.