[Mono-dev] How to use the new RHEL_5 for CentOS 5.5
xen
zhen.cha at dartexecutions.com
Wed Aug 4 13:55:08 EDT 2010
Thanks code changed
const char* key = "test";
const char* status = "1";
int c = 0;
for (c = 0; c < 10000000; c++)
{
gpointer monoReturns[3];
monoReturns [0] = mono_string_new (domain, key);
monoReturns [1] = mono_array_new (domain, mono_get_double_class(), 3);
int i = 0;
for (i = 0; i < 3; i++)
{
mono_array_set((MonoArray*)monoReturns [1], double, i, rand() );
}
// Status
monoReturns [2] = mono_string_new (domain, status);
mono_runtime_invoke(_onStatusChange, obj, monoReturns, NULL);
}
public void onStatusChange(string key, double[] times, string status)
{
/*Console.WriteLine ("Key is {0}", key);
foreach (double time in times)
{
Console.WriteLine ("lineTime is {0}", time);
}
Console.WriteLine ("status is {0}", status);*/
}
On the mono embedding page it there is a new method
mono_method_get_unmanaged_thunk,
is there a sample for using this?
--
View this message in context: http://mono.1490590.n4.nabble.com/How-to-use-the-new-RHEL-5-for-CentOS-5-5-tp2306679p2313932.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
More information about the Mono-devel-list
mailing list