Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can be a VFP9 MTDLL ThreadingModel changed to Free?
Message
De
11/06/2015 09:27:38
 
 
À
11/06/2015 09:10:01
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows NT
Database:
Visual FoxPro
Application:
Web Service
Divers
Thread ID:
01620899
Message ID:
01620901
Vues:
132
Nope. Can't be done. Only apartment model threading is supported.

>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.-
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform