Author: joncham
Date: 2006-10-18 09:23:05 -0400 (Wed, 18 Oct 2006)
New Revision: 66786
Modified:
trunk/mono/mono/metadata/ChangeLog
trunk/mono/mono/metadata/icall.c
Log:
2006-10-18 Jonathan Chambers <[EMAIL PROTECTED]>
* icall.c: Have
ves_icall_System_Diagnostics_DefaultTraceListener_WriteWindowsDebugString
call kernel32 function OutputDebugString directly.
Signed-off-by: Jonathan Chambers <[EMAIL PROTECTED]>
Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog 2006-10-18 13:19:00 UTC (rev 66785)
+++ trunk/mono/mono/metadata/ChangeLog 2006-10-18 13:23:05 UTC (rev 66786)
@@ -1,4 +1,10 @@
+2006-10-18 Jonathan Chambers <[EMAIL PROTECTED]>
+ * icall.c: Have
ves_icall_System_Diagnostics_DefaultTraceListener_WriteWindowsDebugString
+ call kernel32 function OutputDebugString directly.
+
+ Signed-off-by: Jonathan Chambers <[EMAIL PROTECTED]>
+
Tue Oct 17 16:59:59 CEST 2006 Paolo Molaro <[EMAIL PROTECTED]>
* reflection.c: small cleanup, using a function to insert a MonoString
Modified: trunk/mono/mono/metadata/icall.c
===================================================================
--- trunk/mono/mono/metadata/icall.c 2006-10-18 13:19:00 UTC (rev 66785)
+++ trunk/mono/mono/metadata/icall.c 2006-10-18 13:23:05 UTC (rev 66786)
@@ -6030,36 +6030,7 @@
ves_icall_System_Diagnostics_DefaultTraceListener_WriteWindowsDebugString
(MonoString *message)
{
#if defined (PLATFORM_WIN32)
- static void (*output_debug) (gunichar2 *);
- static gboolean tried_loading = FALSE;
-
- MONO_ARCH_SAVE_REGS;
-
- if (!tried_loading && output_debug == NULL) {
- GModule *k32;
-
- tried_loading = TRUE;
- k32 = g_module_open ("kernel32", G_MODULE_BIND_LAZY);
- if (!k32) {
- gchar *error = g_strdup (g_module_error ());
- g_warning ("Failed to load kernel32.dll: %s\n", error);
- g_free (error);
- return;
- }
-
- g_module_symbol (k32, "OutputDebugStringW", (gpointer *)
&output_debug);
- if (!output_debug) {
- gchar *error = g_strdup (g_module_error ());
- g_warning ("Failed to load OutputDebugStringW: %s\n",
error);
- g_free (error);
- return;
- }
- }
-
- if (output_debug == NULL)
- return;
-
- output_debug (mono_string_chars (message));
+ OutputDebugString (mono_string_chars (message));
#else
g_warning ("WriteWindowsDebugString called and PLATFORM_WIN32 not
defined!\n");
#endif
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches