Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM Interop fails with .NET on a Windows 2003 Server
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Network:
Windows 2003 Server
Divers
Thread ID:
01219471
Message ID:
01219571
Vues:
21
Additional information this problem is limited to Windows Server 2003 SP2. I have tried the same code on SP1 and unpatched, and both work fine.

>I'm running from a Domain Administrator account. I can run the dll through FoxPro from the command line. Everything works fine. It's only though Interop where it fails. I don't see how COMRETURNERROR() will help as the VFP code does not cause an error, it doesn't even execute.
>
>If you look at my example. I get a file named InitTest.txt which shows that the class initializes and runs but I do not get and AboutMe.txt file when I call the method. It looks like the method call itself throws the NullReferenceException. In fact the .NET debugger bears this out as it shows all the object properties but each one only shows an exception. I'll copy the watch data.
>
>vfpObj {vfptest.FoxProTestClass} vfptest.FoxProTest
>[vfptest.FoxProTestClass] {vfptest.FoxProTestClass} vfptest.FoxProTestClass
> BaseClass error: an exception of type: {System.NullReferenceException} occurred
>etc...
>
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform