Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel won't paint correctly
Message
 
 
To
29/10/2002 13:25:35
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00716458
Message ID:
00716553
Views:
15
Tamar,

I think you've hit it... I looked and according to the NT taskman excel is still in memory. I shutdown the VFP instance, but Excel still remained in memory. I killed it from taskman and then the sheet opens fine. Am I not doing something to get Excel to unload when I'm done with it?

local loExcel

loExcel = createobject( "excel.application" )
loExcel.Visible = .t.

... do stuff

loExcel.Quit()

loExcel = .null.

Well the above code works ok, Excel terminates from memory.. looks like I've got a dangling object ref in the other code... I'll go ferret it out.

Thanks for pointing me in the right direction!

>I wonder if there's an issue with Excel still holding a lock on the file in some way. I haven't run into this so much with Excel, but I've had a number of cases with Word where I can't do what I want with a file because Word's still holding onto it.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform