twapi memory fault. heeeeeeeeeeeellllllpppppp
From: Mel (mheravi_at_websense.com)
Date: 09/09/04
- Next message: Clif Flynt: "Tcl-2004 Hotel Alert"
- Previous message: Victor Wagner: "Re: Tcl application deployment"
- Next in thread: apnadkarni: "Re: twapi memory fault. heeeeeeeeeeeellllllpppppp"
- Reply: apnadkarni: "Re: twapi memory fault. heeeeeeeeeeeellllllpppppp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 9 Sep 2004 08:02:50 -0700
i get memory fault when i run one of the examples from twap package
TWAPI example
# Show all windows for the given application
# Usage example: tclsh showwindows.example APPLICATIONNAME
package require twapi
if {$argc != 1} {
puts stderr "Usage: [info nameofexecutable] $argv0 APPNAME"
puts stderr "Example: [info nameofexecutable] $argv0 notepad"
exit 1
}
set appname [lindex $argv 0]
# Add an extension if none specified
if {[file extension $appname] == ""} {
append appname .*
}
# Get all pids with that app name
set pids [twapi::get_process_ids -glob -name $appname]
# We have to be careful to only show windows that are not supposed to be
# hidden so only show windows if they have a caption
foreach hwin [twapi::find_windows -pids $pids -caption true] {
twapi::show_window $hwin
}
- Next message: Clif Flynt: "Tcl-2004 Hotel Alert"
- Previous message: Victor Wagner: "Re: Tcl application deployment"
- Next in thread: apnadkarni: "Re: twapi memory fault. heeeeeeeeeeeellllllpppppp"
- Reply: apnadkarni: "Re: twapi memory fault. heeeeeeeeeeeellllllpppppp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|