You know what would help? If you post some code that can be run and demonstrates the problem, including the complete error message. By vaguely describing the problem from memory, you're just making it hard for us to see what the problem is, and therefore you're making the chances of you getting a correct answer a lot smaller.