Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_VFP object causes errors in COM dll
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
_VFP object causes errors in COM dll
Miscellaneous
Thread ID:
00636224
Message ID:
00636224
Views:
49
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
Map
View

Click here to load this message in the networking platform