f



Windows Sockets API updated

Hi All,

I've just updated my wsa.f file for SwiftForth under Windows, here :

www.inventio.co.uk/wsa.f

The HTTP command now supports the POST command.

You can copy the text of the file and paste it into a SwiftForth console window, then type ttall ...

Best regards,
Howerd
0
Howerd
12/22/2016 5:22:03 PM
comp.lang.forth 7148 articles. 0 followers. markrobertwills (871) is leader. Post Follow

3 Replies
752 Views

Similar Articles

[PageSpeed] 52

Hi,

Thank you that is quite extensive.

Under Win32Forth version: 6.15 The following happened.

FLOAD 'E:\FORTH\Howerd\wsa.f'

EXCEPTION 0xC0000005 ACCESS_VIOLATION
Version: 6.15.04 Build: 15
Registers:
 Eax:         004022A4
 Ebx: TOS     00000002 top of stack
 Ecx:         0000000A
 Edx: USER    00195F70 user area
 Edi:         00000000
 Esi: IP      0040F978 Forth ip
 Esp: SP@     00195F2C stack ptr
 Ebp: RP@     0019FDD4 rstack ptr
 Eip: PC      004022A8 machine ip
Access addr:  00000002 READ violation
Backtracking: >IP+10 [UNKNOWN]+FFF00000 CF21B4 [UNKNOWN]+FFF00000
Data stack:   0 0 0 DE86F0
Primitive     UPPERCASE  loaded from: SRC\KERNEL\FKERNEL.F at line: 2505
Invoking word >IP  loaded from: E:\FORTH\HOWERD\WSA.F at line: 127
fails at word NEW-NUMBER  loaded from: E:\PROGRAMS\WIN32FORTH\SRC\NUMCONV.F at line: 129

Press any key to exit...

The last defined word is IP_DEFAULT
It hangs when >ip is defined.
When I cut and paste >ip in to the console without
loading wsa.f then it can be compiled.
The problem seems to be in the use of NUMBER in
>IP under Win32Forth when wsa.f is used.

Jos

On 22 december 2016 18:22:05 UTC+1 Howerd wrote:
> Hi All,
> 
> I've just updated my wsa.f file for SwiftForth under Windows, here :
> 
> www.inventio.co.uk/wsa.f
> 
> The HTTP command now supports the POST command.
> 
> You can copy the text of the file and paste it into a SwiftForth console window, then type ttall ...
> 
> Best regards,
> Howerd

0
josv
12/23/2016 12:05:15 PM
On Friday, 23 December 2016 13:05:17 UTC+1, jo...@planet.nl  wrote:
> Hi,
> 
> Thank you that is quite extensive.
> 
> Under Win32Forth version: 6.15 The following happened.
> 
> FLOAD 'E:\FORTH\Howerd\wsa.f'
> 
> EXCEPTION 0xC0000005 ACCESS_VIOLATION
> Version: 6.15.04 Build: 15
> Registers:
>  Eax:         004022A4
>  Ebx: TOS     00000002 top of stack
>  Ecx:         0000000A
>  Edx: USER    00195F70 user area
>  Edi:         00000000
>  Esi: IP      0040F978 Forth ip
>  Esp: SP@     00195F2C stack ptr
>  Ebp: RP@     0019FDD4 rstack ptr
>  Eip: PC      004022A8 machine ip
> Access addr:  00000002 READ violation
> Backtracking: >IP+10 [UNKNOWN]+FFF00000 CF21B4 [UNKNOWN]+FFF00000
> Data stack:   0 0 0 DE86F0
> Primitive     UPPERCASE  loaded from: SRC\KERNEL\FKERNEL.F at line: 2505
> Invoking word >IP  loaded from: E:\FORTH\HOWERD\WSA.F at line: 127
> fails at word NEW-NUMBER  loaded from: E:\PROGRAMS\WIN32FORTH\SRC\NUMCONV.F at line: 129
> 
> Press any key to exit...
> 
> The last defined word is IP_DEFAULT
> It hangs when >ip is defined.
> When I cut and paste >ip in to the console without
> loading wsa.f then it can be compiled.
> The problem seems to be in the use of NUMBER in
> >IP under Win32Forth when wsa.f is used.
> 
> Jos
> 
> On 22 december 2016 18:22:05 UTC+1 Howerd wrote:
> > Hi All,
> > 
> > I've just updated my wsa.f file for SwiftForth under Windows, here :
> > 
> > www.inventio.co.uk/wsa.f
> > 
> > The HTTP command now supports the POST command.
> > 
> > You can copy the text of the file and paste it into a SwiftForth console window, then type ttall ...
> > 
> > Best regards,
> > Howerd

Hi Jos,

I've only tested this under SwiftForth - it was a quick addition to investigate HTTP POST. 

The code worked under Win32Forth V6.12 (at least that's what it says in the file).
Has something happened to NUMBER between V6.12 and V6.15?
Thanks for testing this :-)

Happy Seasonal Greetings and New Year everyone :-)

Best regards,
Howerd
0
Howerd
12/23/2016 1:02:20 PM
Hi Howerd,

Can't check it, V6.12 is gone.

Now NUMBER is deferred to: NEW-NUMBER.
The stack notation reads: ( str -- d )
It looks the same as in version 4.2

Somewhere in the VFXFORTH part I found:
: number ( a n -- n )   >r  0 0 rot  r>  >number  2drop  drop ;
Perhaps that explains it.

Jos

On 23 december 2016 14:02:22 UTC+1 Howerd wrote:
> On Friday, 23 December 2016 13:05:17 UTC+1, jo...@planet.nl  wrote:
> > Hi,
> > 
> > Thank you that is quite extensive.
> > 
> > Under Win32Forth version: 6.15 The following happened.
> > 
> > FLOAD 'E:\FORTH\Howerd\wsa.f'
> > 
> > EXCEPTION 0xC0000005 ACCESS_VIOLATION
> > Version: 6.15.04 Build: 15
> > Registers:
> >  Eax:         004022A4
> >  Ebx: TOS     00000002 top of stack
> >  Ecx:         0000000A
> >  Edx: USER    00195F70 user area
> >  Edi:         00000000
> >  Esi: IP      0040F978 Forth ip
> >  Esp: SP@     00195F2C stack ptr
> >  Ebp: RP@     0019FDD4 rstack ptr
> >  Eip: PC      004022A8 machine ip
> > Access addr:  00000002 READ violation
> > Backtracking: >IP+10 [UNKNOWN]+FFF00000 CF21B4 [UNKNOWN]+FFF00000
> > Data stack:   0 0 0 DE86F0
> > Primitive     UPPERCASE  loaded from: SRC\KERNEL\FKERNEL.F at line: 2505
> > Invoking word >IP  loaded from: E:\FORTH\HOWERD\WSA.F at line: 127
> > fails at word NEW-NUMBER  loaded from: E:\PROGRAMS\WIN32FORTH\SRC\NUMCONV.F at line: 129
> > 
> > Press any key to exit...
> > 
> > The last defined word is IP_DEFAULT
> > It hangs when >ip is defined.
> > When I cut and paste >ip in to the console without
> > loading wsa.f then it can be compiled.
> > The problem seems to be in the use of NUMBER in
> > >IP under Win32Forth when wsa.f is used.
> > 
> > Jos
> > 
> > On 22 december 2016 18:22:05 UTC+1 Howerd wrote:
> > > Hi All,
> > > 
> > > I've just updated my wsa.f file for SwiftForth under Windows, here :
> > > 
> > > www.inventio.co.uk/wsa.f
> > > 
> > > The HTTP command now supports the POST command.
> > > 
> > > You can copy the text of the file and paste it into a SwiftForth console window, then type ttall ...
> > > 
> > > Best regards,
> > > Howerd
> 
> Hi Jos,
> 
> I've only tested this under SwiftForth - it was a quick addition to investigate HTTP POST. 
> 
> The code worked under Win32Forth V6.12 (at least that's what it says in the file).
> Has something happened to NUMBER between V6.12 and V6.15?
> Thanks for testing this :-)
> 
> Happy Seasonal Greetings and New Year everyone :-)
> 
> Best regards,
> Howerd

0
josv
12/23/2016 3:02:38 PM
Reply: