
ATL Server sample crashes!!!
Hi all,
I am trying to implement a multi-threading app that will enable
content to be downloaded to mobile devices. I need to perform some
validation on a request, but the majority of the time will be spent
actually writing data to the client (about 20 seconds I estimate on
average). So, I tried the 'PooledAsync' sample
from the advanced ATL-server samples. The default function in this will
pause between a time of .5 and 2.0 seconds. Using the sample's
associated default.htm page, I go to superasync.srf using internet
explorer. Hit F5 to refresh, and after about three or four presses
(in fairly quick succession), the thing crashes.
What's going on?
Have I missed the plot here? It doesn't seem to demonstrate
multithreading to me! Because I am expecting a potentially large
number of simultaneous clients, I was hoping to use this sample as a
starting point, so my questions are:
i) what exactly does this sample aim to show?
ii) does it work as intended?
iii) doesn't the crash indicate something is flawed?
iv) could I implement my own threading system in the application
class, independent of ATL server's support?
Without multithreading, my app (for which I have already added a lot
of support for other stuff) will be largely useless.
Many thanks in advance,
Shane Porter.