In my code, I instantiate 'Word.Application', add a standard document and insert a TIFF file, save, close active document and quit Word. Also release all variables. I build my project and everything works fine. The problem occurs on next try when I try to rebuild my project. I got the following error:
"MyAppName.app is in use and cannot be removed from memory."
In Command Window, I tried almost all VFP command to clear memory, like CLEAR ALL, RELEASE ALL... but the problem remain unless I quit/restart VFP and reopen my project. I found something interesting: if a put in comment the line of code that insert picture into Word document, something like 'Word.Selection.InlineShapes.AddPicture', I don't have that strange error. Then I suspect the error is something related to the insertion of the image file into Word. Something seems stay in memory. I don't know what and I don't know how to avoid that.
Any idea about that strange thing? Could be a bug?