It is pretty hard to give anything more than suggestions about what could be wrong based on just a description of the problem. Without source code, all we can do is guess.