It's hard to tell without taking a look at the code, do you have a short example you could post for us to look at?
Type: Posts; User: helloworld922
It's hard to tell without taking a look at the code, do you have a short example you could post for us to look at?
It sounds like you may have some kind of race condition problem.