[Mono-dev] How to use the new RHEL_5 for CentOS 5.5

Robert Jordan robertj at gmx.net
Wed Aug 4 10:06:41 EDT 2010


On 04.08.2010 15:30, xen wrote:
>
> bump for mono 2.6.xx repo for CentOS 5
>
> also is there a better way to do mono embedded then this?
>
> mono_thread_attach(monoDomain);
>
> gpointer monoReturns[4];
> MonoString* locKey = mono_string_new (monoDomain, key);
> monoReturns [0] =&locKey;
> monoReturns [1] =&locLineTime;
> MonoArray* locTimes = mono_array_new (monoDomain,  mono_get_double_class(),
> 3);
> for (int i = 0; i<  3; i++)
> {
>     mono_array_set( locTimes, double, i, times[i]);
> }
> monoReturns [2] =&locTimes;
> // Status
> MonoString* locStatus = mono_string_new (monoDomain, status);
> monoReturns [3] =&locStatus;
> mono_runtime_invoke(_onStatusChange, monoObject, monoReturns, NULL);

It's OK if the managed signature looks like this:

void OnStatusChange(ref string locKey, ???, ref double[] locTimes,
   ref string locStatus);

With other words: no one can tell for sure if you don't
show us the managed signature you're trying to invoke.

Robert



More information about the Mono-devel-list mailing list