aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/CompilerServices
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-08-27 06:51:36 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-08-27 06:51:36 +0200
commitd6d7eda88ae12d6c47d6c158a5a9527a47447745 (patch)
tree29c1ef3356be40076313d9e6f4f3e1a186f52a4a /src/CompilerServices
parentf8465d581c43982ef76ad82c7c792b5e96264475 (diff)
first step in implementing a dispose mechanism for graphic objects
Diffstat (limited to 'src/CompilerServices')
-rw-r--r--src/CompilerServices/CompilerServices.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CompilerServices/CompilerServices.cs b/src/CompilerServices/CompilerServices.cs
index 5884ee66..5409aa5e 100644
--- a/src/CompilerServices/CompilerServices.cs
+++ b/src/CompilerServices/CompilerServices.cs
@@ -632,7 +632,9 @@ namespace Crow
Type t = instance.GetType ();
FieldInfo fiEvt = getEventHandlerField (t, eventName);
if (fiEvt == null) {
+ #if DEBUG_BINDING
Debug.WriteLine ("RemoveHandlerByName: Event '" + eventName + "' not found in " + instance);
+ #endif
return;
}
EventInfo eiEvt = t.GetEvent (eventName);