Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Norton 2005 kills CreateObject() ??
Message
From
13/05/2005 12:55:14
 
 
To
13/05/2005 10:25:26
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01013848
Message ID:
01013957
Views:
17
This message has been marked as the solution to the initial question of the thread.
I've had the same error on one of my development machines (XP Pro) all along. I don't know what causes it, and haven't been able to find out. I didn't suspect Norton AnitVirus, although the machine in question had NAV 2004 on it at first and now has NAV 2005.

One work-around is to launch Word manually, then use GetObject() instead of CreateObject() in your VFP app. This is annoying at best on a development machine, and may not even be feasible in the client's environment, but it might serve as an interim solution until a real solution can be found.

The code would be something like this:
TRY
   oWord=createobject("Word.Application")
CATCH
   TRY
      oWord=getobject(, "Word.Application")
   CATCH
      * Can't get Word object either way, handle it here.
   ENDTRY
ENDTRY
If you find a real cause and solution I hope you'll post it here.



>We have two machines in our office and several at customer sites that have started giving "OLE Error code 0X80040111 ClassFactory cannot supply requested class" after Norton AntiVirus 2005 was installed. Affected machines return the same error running this line from the FoxPro command window:
>
>oWord=createobject("Word.Application")
>
>I Initially thought it might be related to Norton's ScrBlock.dll being set as the InProcServer32 for the CLSID, but that's the case on my machine too, and my machine works fine. I don't have Norton 2005.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Reply
Map
View

Click here to load this message in the networking platform