May be if you show some code, or give compilable code we can see whats wrong