Well, I have to tell you again (and it is the last time!):
Please, post properly formatted code with indentations and within Code tags!
And not just a couple of lines but your actual code (or code snippet) that we will be able to compile and test.
Note that the code you have posted in the post#12 has nothing to do with the one in your OP!