Don't name your parameters the same thing as your class members then.
If you don't like m_thing, mThing, thing_ etc. you could use theListener for the member and aListener for the argument (parameter) to a function.
Don't name your parameters the same thing as your class members then.
If you don't like m_thing, mThing, thing_ etc. you could use theListener for the member and aListener for the argument (parameter) to a function.
And stop debugging in release mode as it has all kinds of optimisations on and shuffles the code around quite a bit to make it faster or smaller executable size. This means that the crash you had doesn't necessarily have to happen on the line that the debugger is indicating. Looking at the callstack becomes important then to figure out where it was coming from and what it was supposed to do.