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)