Article View: fj.lang.tcl
Article #29Segmentation Fault with Tcl8.1a2/Tk8.1a2
From: UEDA Hiroyuki
Date: Sat, 07 Mar 1998 00:00
Date: Sat, 07 Mar 1998 00:00
32 lines
1599 bytes
1599 bytes
植田@かもめネットと申します。comp.lang.tcl の方にも投稿して
しまいましたので、両方読まれた方はご容赦ください。
Tcl8.1a2/Tk8.1a2 を試したら、Segmentation Fault がバリバリ
出ます。FreeBSD-2.2.5R なんですが、次のようなスクリプトを
実行し、ボタンを押してファイルを選択すると、Segmentation Fault
でます。
------------------------------------
button .sourceB -text "Browse" -command {get_filename}
entry .sourceE -textvariable source
pack .sourceE .sourceB
proc get_filename {} {
global source
set tmpfile [tk_getOpenFile]
set source [file tail $tmpfile]
puts "Filename is $source"
}
------------------------------------
wish8.0 以前のものならば問題ないのですが...
これは Tcl8.1a2/Tk8.1a2 のバグなんでしょうか? それとも私が
Tcl8.1a2/Tk8.1a2 の変更された点を理解していないためなのでしょうか?
# 何だか自分の作った script がほとんど動かないんですけど... ;_;)。
--------------------------------------------------------------
植田裕之 <hueda@kamome.or.jp>
Technical Details
Message-ID:
<35014E4E.5D4C5D91@kamome.or.jp>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: 15a83d,39f143386e9584e3,start X-Google-Attributes: gid15a83d,public From: UEDA Hiroyuki <hueda@kamome.or.jp> Subject: Segmentation Fault with Tcl8.1a2/Tk8.1a2 Date: 1998/03/07 Message-ID: <35014E4E.5D4C5D91@kamome.or.jp> X-Deja-AN: 331793901 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=iso-2022-jp Organization: Kamome Internet Service Mime-Version: 1.0 Newsgroups: fj.lang.tcl