No problems, Programmer_P. I am going to exercise the option of placing you on my ignore list, so I will not see your replies or any further posts.
You got help because you got lucky, not because of any good aspects of your approach in the forum.
You did not make effort to find the actual problem, since you assumed it was in a particular place. If you had actually put in effort to remove code, to make a smaller example that compiles, links, and exhibits your problem, you would probably have found it yourself.
By removing code unrelated to your problem, I am not suggesting all you needed to do was post the one line where you thought the problem is. I am advocating a problem solving approach that is more robust than "I think the problem is here, but here's the rest of my mess for you to sift through while I go and look at other things". If you had removed (or commented out) some lines, recompiled, run again you would have been able to narrow down on the actual cause. And, if you had done that and still not understood why the problem was occurring, other people would have had a more tractable problem to address.
This forum exists to help people with problems, true. But the art of asking for help in forums is that you contribute to solving your own problem, through effort to narrow things down, through investigations in which you might find the problem yourself. Not just being lazy, giving up when things aren't immediately obvious, and expecting others to sort through your mess.
That is where your logic is faulty. People contribute to forums to help people who help themselves, but get in trouble. They do not participate to help people who expect others to do the hard yards that they should do.