how about posting your entire program or all the code involved, maybe you have a problem somewhere else