[Mono-list] Troubling passing DateTime via embedded API

Robert Jordan robertj at gmx.net
Fri Jul 26 12:48:11 UTC 2013


On 26.07.2013 14:09, jonathan at mugginsoft.com wrote:
>      // validate the Mono representatiom
>      int64_t ticks = DB_UNBOX_INT64(DBMonoObjectGetProperty(monoDateTime, "Ticks"));
>      MonoString *monoString = mono_object_to_string(monoDateTime, NULL);

mono_object_to_string () is buggy with respect to value types:

https://github.com/mono/mono/pull/708
https://github.com/mono/mono/pull/708/files

You may want to create your own mono_object_to_string_ex
until the patch becomes incorporated and released.

Robert



More information about the Mono-list mailing list