What is the Windows application that you're opening? Is the database you're using Access? If it is, you could be locking out the VI that is doing the writing. Imho, Access isn't the most robust application and you may need to add some addtional error trapping in your database routines and in case of an error, retry to make a connection.