Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VBScript
Message
From
18/05/2006 21:19:21
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
01123082
Message ID:
01123464
Views:
22
Thanks for the quick response.

Edit ************************************

I think I just figured it out, being a new instalation the taskpane was set to run as a startup application. This was what was causing it to fail.

John

Pre Edit ********************************

The VFPFilter.prg is very simple just for testing and doesn't actually do much yet.
SET SAFETY OFF
=STRTOFILE('Test','C:\Scripts\VFPTest.log')
SET SAFETY ON
RETURN
Just these 2 lines of code in a script file will create the error.
Dim oFox
Set oFox = CreateObject("VisualFoxPro.Application")
I just tried this under Windows XP Pro and on a Windows 2000 client, and it seems to work fine, so the problem seems to relate only to my Windows Server 2000 (SBS) instalation. This is a new instalation of VFP which I upgraded to SP1.

Any Ideas

John

>Make sure that you release all objects you create in VFPFilter.prg at the end.
>
>>
>>Dim oFox
>>Set oFox = CreateObject("VisualFoxPro.Application")
>>'oFox.DoCmd "DO C:\Scripts\VFPFilter.prg"
>>'oFox.DoCmd "QUIT"
>>'oFox.Quit()
>>
>>
>>Trying to run a VFP program from a VBScript file for an email filter. It always gives me a Cannot Quit Visual FoxPro error followed by an OLE error. What am I missing?
>>
>>OLE Errors are usually either c0000005 or 99.
>>
>>I suspect that it may be because VFP is still busy... but how would I test for that? And... I'm not even sure that that is it. Googled a bunch but didn't come up with anything useful. Any help greatly appreciated.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform