gallery -> cfx_wait

At 06:09 PM 7/13/2000 +0100, Alan Ford wrote:
>We have to talk to a piece of legacy code in the middle of a display
>handler. We do this by writing a file to disk - which contains the query the
>customer has entered. The legacy code sees the file, works out the answer
>(which can take a few seconds if it's a complex query), and then writes a
>reply file for us to read and display. We have plans to make this legacy
>code into a DLL which we can call, but that will not happen for several
>weeks - we go live in two!
>
>The problem is, what is the best way to wait for the reply file to arrive?
>Ideally I would want it to be event driven - say by settings a Windows timer
>to fire after .25 of a second, look if the file has arrived, wait for
>another event - but that doesn't sit nicely into CF / Spectra. Right now we
>have a CPU intensive loop where we simply loop round until tickcount has
>advanced by 250 then we look for the file, which we know is an awful
>solution for a load of reasons.
>
>We did try using cfsleep (which I think came from the tag gallery), but
>using that caused our next cfquery to fail with a timeout. So, is anyone
>aware of a 'proper' non-CPU intensive way of waiting a while in the middle
>of a display handler?
>
>Thanks in advance,
>
>Alan Ford
>
>---------------------------------------------------------------------------
---
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk
 or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
>

--
Stephen Garrett
GPS
[EMAIL PROTECTED]           (360) 896-2714
ICQ# 10776767
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to