DavidBirch2dotCom
asked on
Easy Q for any one who knows ISAPI
please check it out here
https://www.experts-exchange.com/questions/20946761/Severside-text-file-access.html
thanks in advance
David
https://www.experts-exchange.com/questions/20946761/Severside-text-file-access.html
thanks in advance
David
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
post on the old Q for the points
Normally, different requests should reside in different threads.
You just need to
1. var CS: TRTLCriticalSection;
and
InitializeCriticalSection( CS) in the OnFormcreate event,
2. put the read file code between the
EnterCriticalSection
and
leaveCriticalSection;
This should work.
The code between this clock can only be processed for one thread within one Process (or application).
More details can be obtained from help
Good luck.
You just need to
1. var CS: TRTLCriticalSection;
and
InitializeCriticalSection(
2. put the read file code between the
EnterCriticalSection
and
leaveCriticalSection;
This should work.
The code between this clock can only be processed for one thread within one Process (or application).
More details can be obtained from help
Good luck.
ASKER
thanks tanghz :) IT WORKED :)
i assume I can use multiple TRTLCriticalSection's? just by using other varibles ?
u get the points, post somthing in this question to get the points
https://www.experts-exchange.com/questions/20946761/Severside-text-file-access.html
David
i assume I can use multiple TRTLCriticalSection's? just by using other varibles ?
u get the points, post somthing in this question to get the points
https://www.experts-exchange.com/questions/20946761/Severside-text-file-access.html
David
ASKER
I’m not trying to access anything outside of the CGI bin, however I just didn’t know how to access the stuff in the CGI bin - now I do :)
However I am still trying to figure out how I could cope with multiple simultaneous requests for the same file.... any ideas?
Thanks
David