|
From: John L. <jla...@gm...> - 2009-07-29 03:59:32
|
On Tue, Jul 28, 2009 at 6:59 PM, Daniel Aquino<mr....@gm...> wrote: > I'm having lockups when I try to pull an http page using wxURL. > > It gets stuck at GetInputStream but then appears to work fine after > right clicking on the systray icon... I assume you are under MS Windows? XP? > I believe it may be the threads issues that are described on this page: > > http://wiki.wxwidgets.org/WxURL > > quote: "Under Windows, wxURL and wxThread may have problems to work > well together. Be sure to construct the wxURL and call > wxURL::GetInputStream inside the main thread." wxLua always runs everything in the main thread unless you have created another thread. I don't get any delays running your code in MS Windows XP using wxlua.exe, wxluafreeze.exe, and wxluaedit.exe. They all get a size of 4 and the stream is: "{ } " Regards, John |