Open GoogleCodeExporter opened 8 years ago
The lack of an exception message makes it tricky. I do not have a unity license
to repro (I asked, they said yes, then never delivered despite multiple
requests). Perhaps the first thing to try is switching to a dedicated
serializer, via "precompiler":
http://marcgravell.blogspot.co.uk/2012/07/introducing-protobuf-net-precompiler.h
tml
So:
- your DTO and app assemblies would reference one of the "core-only" builds;
perhaps the "unity" one
- you run precompiler against your DTO dll, and it generates a serializer dll
- you reference that serializer dll from your app, and instead of
`Serializer.Serialize(...)` you would use `new
MyCustomSerializer().Serialize(...)`
worth a try?
Original comment by marc.gravell
on 10 Sep 2012 at 7:22
Thank you for reply.
In my case, precompiling is hard to be apply, because it cause circular
references of dll.
So I have tried to import directly protobuf-net core source code into Unity
project.
Unity shows error messages "Unsafe code requires the `unsafe' command line
option to be specified" in ProtoReader.cs and ProtoWriter.cs
I guess that unsafe block is not good for Unity.
Actually, Logcat error message "singal 11" has something to do with memory
access.
I wanna to try with totally managed code.
Is there a way to remove "unsafe" keyword?
Original comment by stylix...@gmail.com
on 10 Sep 2012 at 11:56
Original issue reported on code.google.com by
stylix...@gmail.com
on 10 Sep 2012 at 1:13