General information
Category:
COM/DCOM and OLE Automation
Title:
_VFP object causes errors in COM dll
I have problem with the _VFP object. I am accessing the .Startup mode property to perform some conditional processing if the object is running in development mode. I find that if you simply access the _VFP object while running windows 9x, you get an A/V when you release the object
Consider this class:
DEFINE CLASS TestObj as Session OLEPUBLIC
FUNCTION Init
LOCAL StartMode
StartMode = _VFP.StartMode
ENDFUNC
ENDDEFINE
Now run this code:
oTest = createobject("TestServer.TestObj")
oTest = .null. && get an A/V right here
This problem only seems to occur on windows 95/98/ME. No problem on NT4/2K/XP.
The class is built as a multithreaded COM dll, using VFP 7 SP1.
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