Can you post a short program that compiles, executes and shows the problem. Your explanation does not provide many details on what the code is doing.