Can you post a small simple complete program that executes and demonstrates your problem.