Well, it's the same lifetime issue as before. This reference references memory owned by CListener. Maybe you meant CString by value.
Also this is switch to route "a)". Ok :-(