Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sys 2336 Necessity?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00754984
Message ID:
00756390
Views:
12
Steve -- (I don't know if this helps, but since VFP and VB6 both use single threaded apartment models, it seems worth throwing this out there...).

I have seen VB code that explicitly deals with critical sections, but only in cases where the developer was spawning new subordinate thread instances, and grabbing values using the FindAtomA API, etc.

I have never seen it handled in VB code except in the somewhat kludg-y circumstances I have just described. I wonder if, in VFP, sys(2336) would serve a similar purpose.

To be honest, my head begins to hurt whenever I see code like this [although I understand that sometimes it's necessary!]. I've always dealt with it on a need to know basis, so I didn't delve into the critical section stuff much more. But maybe this will give you a lead you can follow up on, and come on back and educate me a little!!

Vin




>Thanks, Michel. I checked out the issues around using the function, but I know the VFP Team invented it with something in mind... I'm just wondering what "something" was. I have done a few varities of apps with "VFP inside" and have not used that Sys function. I'm just hoping to get inspired by some real-world examples or ideas. I am guessing that it might be useful if you had a MTDLL that needed to poll the serial port; but then again if you are polling the serial port you might as well have a .exe that does it all the time, so that is not a good example....
>
>
>
>>
>>This thread #634650 contains some issues in regards to SYS(2336).
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform