Re: Euphoria 2.6 Attn: Robert
- Posted by Robert Craig <rds at RapidEuphoria.com> Dec 25, 2005
- 720 views
C Bouzy wrote: > I have been playing around with the multitasking version of EU, and I have > also been experimenting with Al’s virtual thread manager, and neither seems > to remedy the freezing of Win32 applications when calling certain kinds of > functions. For example when I call BASS_StreamCreateURL (Bass.dll Library), > my app will freeze until a value is returned. This happens with most > functions that deal with connecting to the internet. I have always found > workarounds with EU limitations, but I have never been able to find a > solution to this problem. Is there a way to correct this with the current > version of EU, if not, will the new version of EU fix this problem? Euphoria's multitasking will not by itself solve the problem of I/O calls that block, i.e. make you wait a long time before they return. However you might look into the User Contribution by Daniel Kluss, where, while using Euphoria multitasking, he creates a second independent O/S thread to handle a slow API call. I'm not sure how many different API calls that works for, but I think it's a lot. Also, in general, you can sometimes substitute a non-blocking I/O call for a blocking one, e.g. for reading a big chunk of data. In that case you could have a separate Euphoria task that polls a variable or memory location, waiting for the I/O operation to complete. While it's doing that, other Euphoria tasks could be free to do other useful things. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com