1. Non-blocking download
- Posted by xfox26 Jan 06, 2010
- 990 views
hi!
How can I do a http download without blocking the UI, using either wxeuphoria or win32lib (I prefer wxeuphoria, but wherever...)
I've tryed the "Asynchronous HTTP" in The Archive (http://www.rapideuphoria.com/http.zip) but it was designed to old "onEvent" win32lib. I've tryed to convert to current "setHandler()" but with no success, im not skilled enough..>
Can anyone more "euphoric" convert this lib? or point me a solution to download a http file without blocking the UI?
Sorry for my bad english, and thanks in advance
2. Re: Non-blocking download
- Posted by useless Jan 06, 2010
- 1037 views
hi!
How can I do a http download without blocking the UI, using either wxeuphoria or win32lib (I prefer wxeuphoria, but wherever...)
I've tryed the "Asynchronous HTTP" in The Archive (http://www.rapideuphoria.com/http.zip) but it was designed to old "onEvent" win32lib. I've tryed to convert to current "setHandler()" but with no success, im not skilled enough..>
Can anyone more "euphoric" convert this lib? or point me a solution to download a http file without blocking the UI?
Sorry for my bad english, and thanks in advance
Look at news.ex (or whatever it's called now) in Eu v4.
useless
3. Re: Non-blocking download
- Posted by xfox26 Jan 06, 2010
- 977 views
I've decided to not move to euphoria 4 while it's in beta stage, maybe it's time to move now?
As win32lib have issues with Eu4, and I primarly use win32lib and wxeuphoria, I stayed with 3.11 by now...
4. Re: Non-blocking download
- Posted by dcole Jan 07, 2010
- 907 views
Hello xfox26,
To download I use Urlmon.ew (in the Archives) .
It works fine for me. I don't know what you mean by 'blocking the UI'. What's the UI?
I never had any trouble with blocking anything when downloading.
Don Cole
5. Re: Non-blocking download
- Posted by jimcbrown (admin) Jan 07, 2010
- 882 views
My recommendation is to install wget.exe or curl.exe and then run that command via system() to download the url.
I think you can do system("start wget http://url.tld/page", 2) and it will start the command in the background while allowing your GUI to run.