Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My app is in use and cannot be removed from memory...
Message
From
14/04/2007 10:16:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
My app is in use and cannot be removed from memory...
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01215926
Message ID:
01215926
Views:
90
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?
Marc Levesque
La Prairie, Quebec (CANADA)
marc.levesque@videotron.ca
Reply
Map
View

Click here to load this message in the networking platform