Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My app is in use and cannot be removed from memory...
Message
De
14/04/2007 10:16:48
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
My app is in use and cannot be removed from memory...
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01215926
Message ID:
01215926
Vues:
91
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
Répondre
Fil
Voir

Click here to load this message in the networking platform