Neels wrote:
it works fine in release mode.
No, it only APPEARS to work. The problem exists in both, but because of the differences in the way each is compiled, variables are initialized, etc, the problem has simply been moved or masked.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne