Hm, well I cant suggest anything without seeing the code, other than just using regular debugging techniques to figure out where the problem is.