From 5e77fdbb2443cd0addf9943c2cc242695b07b068 Mon Sep 17 00:00:00 2001 From: Lluis Sanchez Gual Date: Tue, 1 Mar 2011 12:14:44 +0100 Subject: [PATCH] Don't report Application.Invoke calls. --- profiler/gui-thread-check.c | 1 + 1 file changed, 1 insertion(+) diff --git a/profiler/gui-thread-check.c b/profiler/gui-thread-check.c index a2ab282ec..8775567a4 100644 --- a/profiler/gui-thread-check.c +++ b/profiler/gui-thread-check.c @@ -65,6 +65,7 @@ simple_method_enter (MonoProfiler *prof, MonoMethod *method) } if (current_thread_id != guithread && !(strcmp (klass_name, "Object")==0 && strcmp (method_name, "Dispose")==0) && + !(strcmp (klass_name, "Application")==0 && strcmp (method_name, "Invoke")==0) && !(strcmp (method_name, "Finalize")==0) && !(strcmp (method_name, "get_NativeDestroyHandler")==0) && !(strcmp (method_name, "remove_Destroyed")==0)