General information
Category:
COM/DCOM and OLE Automation
Environment versions
Network:
Windows 2003 Server
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...
>
>
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only