You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 535 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Patrick Doane
Version: 3.02
OS: Windows NT 4.0
Submission from: 216.30.40.244 (216.30.40.244)
The following program crashes with an attempt to reference memory at
"0x00000000". If I remove the call to add_fileoutput, then the program does not
crash.
I have installed TCL/TK 8.3 from ftp://ftp.scriptics.com/pub/tcl/tcl8_3/ and
verified that the tcl83.lib and tk83.lib from that installation are the only
ones that exist in the LIB path.
--
open Unix
let fileinput () = prerr_endline "fileinput"
let fileoutput () = prerr_endline "fileoutput"
;;
let test host port =
let inet_addr = (gethostbyname host).h_addr_list.(0) in
let sock_addr = ADDR_INET (inet_addr, port) in
let fd = socket ~domain:PF_INET ~kind:SOCK_STREAM ~protocol:0 in
connect fd sock_addr;
Fileevent.add_fileinput ~fd ~callback:fileinput;
Fileevent.add_fileoutput ~fd ~callback:fileoutput;
;;
let main () =
let top = Tk.openTk () in
test "localhost" 5555;
Tk.mainLoop ()
;;
Unix.handle_unix_error main ()
The text was updated successfully, but these errors were encountered:
The following program crashes with an attempt to reference memory at
"0x00000000". If I remove the call to add_fileoutput, then the
program does not crash.
I'm sorry for the very long delay.
I've now fixed the problem, which was just a stupid asynchrony between
the Unix and Labltk libraries.
Here is a small patch that fixes it, if you can compile ocaml for
windows.
Unfortunately, this doesn't solve the more fundamental problem that
using Tcl channels only works for sockets, and not with pipes... which
I would need for ocamlbrowser.
Jacques Garrigue Kyoto University garrigue at kurims.kyoto-u.ac.jp JG
Original bug ID: 535
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Patrick Doane
Version: 3.02
OS: Windows NT 4.0
Submission from: 216.30.40.244 (216.30.40.244)
The following program crashes with an attempt to reference memory at
"0x00000000". If I remove the call to add_fileoutput, then the program does not
crash.
I have installed TCL/TK 8.3 from ftp://ftp.scriptics.com/pub/tcl/tcl8_3/ and
verified that the tcl83.lib and tk83.lib from that installation are the only
ones that exist in the LIB path.
--
open Unix
let fileinput () = prerr_endline "fileinput"
let fileoutput () = prerr_endline "fileoutput"
;;
let test host port =
let inet_addr = (gethostbyname host).h_addr_list.(0) in
let sock_addr = ADDR_INET (inet_addr, port) in
let fd = socket ~domain:PF_INET ~kind:SOCK_STREAM ~protocol:0 in
connect fd sock_addr;
Fileevent.add_fileinput ~fd ~callback:fileinput;
Fileevent.add_fileoutput ~fd ~callback:fileoutput;
;;
let main () =
let top = Tk.openTk () in
test "localhost" 5555;
Tk.mainLoop ()
;;
Unix.handle_unix_error main ()
The text was updated successfully, but these errors were encountered: