1. Asynchronous HTTP Examle Error

The Asynchronous HTTP example just gives me a error when I click the get
button, a rather long one too. Is it no longer compatable with
win32lib? Has someone put together a newer compatable version?
Am I just not setting something up? Here is error, is it helps:


C:\program files\programming\EUPHORIA\include\win32lib.ew:8405 in function invok
eHandler()
call to ProccessMessage() via routine-id should pass 3 arguments, not 4
... called from C:\program files\programming\EUPHORIA\include\win32lib.ew:32731
in function MessageProcessor()
... called from C:\program files\programming\EUPHORIA\include\win32lib.ew:32821
in function WndProc()

^^^ call-back from Windows
... called from C:\program files\programming\EUPHORIA\include\w32dll.ew:212 in f
unction w32Func()
... called from C:\program files\programming\EUPHORIA\include\win32lib.ew:32675
in function DefProcessing()
... called from C:\program files\programming\EUPHORIA\include\win32lib.ew:32770
in function MessageProcessor()
... called from C:\program files\programming\EUPHORIA\include\win32lib.ew:32827
in function SubProc()

^^^ call-back from Windows
... called from C:\program files\programming\EUPHORIA\include\w32dll.ew:212 in f
unction w32Func()
... called from C:\program files\programming\EUPHORIA\include\win32lib.ew:33316
in procedure eventLoop()
... called from C:\program files\programming\EUPHORIA\include\win32lib.ew:33536
in procedure WinMain()
... called from C:\Program Files\Programming\EUPHORIA\http\example.exw:51
--> see ex.err


Press Enter...


What should I do?

new topic     » topic index » view message » categorize

2. Re: Asynchronous HTTP Examle Error

Damien Black wrote:
> 
> The Asynchronous HTTP example just gives me a error when I click the get
> button, a rather long one too. Is it no longer compatable with
> win32lib? Has someone put together a newer compatable version?
> Am I just not setting something up? Here is error, is it helps:
> 
> 
> C:\program files\programming\EUPHORIA\include\win32lib.ew:8405 in function
> invok
> eHandler()
<snip>
> 
> 
> What should I do?

If I go to the function 'ProccessMessage' in 'AsyncHTTP' and add a fourth object
perameter it will run all right... but I'm wary of using such a patchy fix.
Anyone
know the real reason this happens?

new topic     » goto parent     » topic index » view message » categorize

3. Re: Asynchronous HTTP Examle Error

Damien Black wrote:
> > 
> > The Asynchronous HTTP example just gives me a error when I click the get
> > button, a rather long one too. Is it no longer compatable with
> > win32lib? Has someone put together a newer compatable version?
> > Am I just not setting something up? Here is error, is it helps:
> > 
> > 
> > C:\program files\programming\EUPHORIA\include\win32lib.ew:8405 in function
> > invok
> > eHandler()
> <snip>
> > 
> > 
> > What should I do?
> 
> If I go to the function 'ProccessMessage' in 'AsyncHTTP' and add a fourth
> object
> perameter it will run all right... but I'm wary of using such a patchy fix.
> Anyone know the real reason this happens?

Hi Damien,

This was written using a (much?) older version of Win32Lib but I don't see what
version was used in development.

I fixed up the example program to use setHandler instead of the deprecated
onEvent[] handlers and that fixed the crash but I'm still not getting any data or
error message.

If I were interested enough and still couldn't figure it out, I'd probably just
email Thomas.  I'm willing to bet that he'd help you out and maybe even update
his demo in the archives.

-- Brian

new topic     » goto parent     » topic index » view message » categorize

4. Re: Asynchronous HTTP Examle Error

Brian Broker wrote:
> 
> Damien Black wrote:
> > > 
> > > The Asynchronous HTTP example just gives me a error when I click the get
> > > button, a rather long one too. Is it no longer compatable with
> > > win32lib? Has someone put together a newer compatable version?
> > > Am I just not setting something up? Here is error, is it helps:
> > > 
> > > 
> > > C:\program files\programming\EUPHORIA\include\win32lib.ew:8405 in function
> > > invok
> > > eHandler()
> > <snip>
> > > 
> > > 
> > > What should I do?
> > 
> > If I go to the function 'ProccessMessage' in 'AsyncHTTP' and add a fourth
> > object
> > perameter it will run all right... but I'm wary of using such a patchy fix.
> > Anyone know the real reason this happens?
> 
> Hi Damien,
> 
> This was written using a (much?) older version of Win32Lib but I don't see
> what
> version was used in development.
> 
> I fixed up the example program to use setHandler instead of the deprecated
> onEvent[]
> handlers and that fixed the crash but I'm still not getting any data or error
> message.
> 
> If I were interested enough and still couldn't figure it out, I'd probably
> just
> email Thomas.  I'm willing to bet that he'd help you out and maybe even update
> his demo in the archives.
> 
> -- Brian

Ooops... I gave up on it too soon.  There was one more onEvent[] handler in the
lib that needed to be converted.  I've uploaded the working demo to
http://cablespeed.com/~bkb/Eu/AsyncHTTP.zip

-- Brian

new topic     » goto parent     » topic index » view message » categorize

5. Re: Asynchronous HTTP Examle Error

Brian Broker wrote:
> 
> Brian Broker wrote:
> > 
> > Damien Black wrote:
> > > > 
> > > > The Asynchronous HTTP example just gives me a error when I click the get
> > > > button, a rather long one too. Is it no longer compatable with
> > > > win32lib? Has someone put together a newer compatable version?
> > > > Am I just not setting something up? Here is error, is it helps:
> > > > 
> > > > 
> > > > C:\program files\programming\EUPHORIA\include\win32lib.ew:8405 in
> > > > function invok
> > > > eHandler()
> > > <snip>
> > > > 
> > > > 
> > > > What should I do?
> > > 
> > > If I go to the function 'ProccessMessage' in 'AsyncHTTP' and add a fourth
> > > object
> > > perameter it will run all right... but I'm wary of using such a patchy
> > > fix.
> > > Anyone know the real reason this happens?
> > 
> > Hi Damien,
> > 
> > This was written using a (much?) older version of Win32Lib but I don't see
> > what
> > version was used in development.
> > 
> > I fixed up the example program to use setHandler instead of the deprecated
> > onEvent[]
> > handlers and that fixed the crash but I'm still not getting any data or
> > error
> > message.
> > 
> > If I were interested enough and still couldn't figure it out, I'd probably
> > just
> > email Thomas.  I'm willing to bet that he'd help you out and maybe even
> > update
> > his demo in the archives.
> > 
> > -- Brian
> 
> Ooops... I gave up on it too soon.  There was one more onEvent[] handler in
> the lib that needed to be converted.  I've uploaded the working
> demo to <a
> href="http://cablespeed.com/~bkb/Eu/AsyncHTTP.zip">http://cablespeed.com/~bkb/Eu/AsyncHTTP.zip</a>
> 
> -- Brian

Thanks Brain, that did it. I'm still a little shaky using Winlib, or I would
have been able to do it myself.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu