I know this is an old project, and low activity, but this library is pretty easy to use, in case others run into this. The above fix didn't seem to work for me while running in Windows (VC++ 2017) while in Release. Works fine in Debug. Looks like Mycont always return nullptr in release. Rather then trying to check the iterator a copy of the sources should be used to iterator through. When the source no longer needs to be monitored it can be removed from the copied list. In the case that the handleEvent...