Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can be a VFP9 MTDLL ThreadingModel changed to Free?
Message
From
11/06/2015 09:10:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Can be a VFP9 MTDLL ThreadingModel changed to Free?
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows NT
Database:
Visual FoxPro
Application:
Web Service
Miscellaneous
Thread ID:
01620899
Message ID:
01620899
Views:
162
After all: I don't know C/C++ language, nor low-level COM, so this may be a crazy idea.

I know that VFP MTDLLs use Apartment model (STA), but on the other side the VFP9T.DLL is thread-safe, so I would question if anybody have tryed to change the threading model of a generated DLL to "Free" so can be used in MTA.

My reasoning is this:

1) If the VFP9T DLL is thread-safe (which as I understand it, means that support real multithread) and care is taken in the code for using only local variables (or properties) and properly marking "critical sections", then in theory no problems should happen.

2) If the VFP "multi-thread" concept really means "multi-thread STAs", on which ona STA can't se other STAs, then what's the support for critical section is for?

I'm going to do some testing, but I'm interested in other's testings on the matter.
Yeah, this may be crazy, but it doesn't hurt to make a try :)


Best Regards.-
Fernando D. Bozzo
Madrid / Spain
Next
Reply
Map
View

Click here to load this message in the networking platform