I'm in this situation with a project:
I need to implement a certain piece of functionality, which the code does I am working on not fulfill reliably. That is fine, but the implementation throws up exceptions about files in use (there is an instance class which reads and writes to a config file, and part of the problem is so many methods locally using the object, so there's all sorts of problems with state).
If you are in the process of implementing some functionality, but the primary means to do so is not reliable, due to the way the app is coded by others, what would be the best thing to do? I personally raise the issue with my manager and discuss an alternative. What would you do? Any stories from experience?