I still have not figured this out. It only happens when opening an existing
form, and only after closing the form from managed code. If I submit the
form in code and then close InfoPath manually, it doesn't happen. I have a
Biztalk orchestration monitoring the form library, and when this "File in
use..." error happens, it also causes Biztalk to hang. The solutions
proposed below are not really viable. I need to understand what's happening
here. I guess I could just get rid of the "Close" button on my form, and
make the user close InfoPath manually. That's just not very sexy. I've tried
closing the form every way possible, using window.close, application.quit,
etc. but they all give me the same results. Anyone have some insight into
this problem????
josh