windows 7 - Word 2007 OLE Locks File and Won't Close -


my application recognises rtf on clipboard , 'paste' saves rtf temporary rtf file. use coleclientitem::createfromfile embed data ole rtf document (rendered word). try remove temporary file.

on winxp / office 2003 fine. since moved win7(x64)/office 2007, word hangs around, locking temp rtf file. coleclientitem::close doesn't anything. there anyway can prevent word locking file can delete it? (i don't mind word hanging around much, if tidy properly).


Comments