|
2008-11-28
| ||
| 07:22 | • Ticket [219293ffff] Need unique DDE servernames status still Closed with 4 o... artifact: 1928267e26 user: patthoyts | |
|
2008-11-21
| ||
| 21:31 | • Ticket [219293ffff]: 7 changes artifact: a36d0b356b user: dkf | |
|
2003-05-17
| ||
| 07:01 | • Closed ticket [219293ffff]. artifact: a1510d1315 user: patthoyts | |
|
2003-03-23
| ||
| 06:24 | • Ticket [219293ffff]: 4 changes artifact: e59e5def38 user: patthoyts | |
|
2003-03-22
| ||
| 06:58 | • Ticket [219293ffff]: 1 change artifact: 872ee00cba user: kennykb | |
|
2003-02-21
| ||
| 05:49 | • Ticket [219293ffff]: 4 changes artifact: 2a4bea22aa user: patthoyts | |
|
2002-03-20
| ||
| 16:25 | • Ticket [219293ffff]: 4 changes artifact: 8f782486a4 user: patthoyts | |
|
2001-02-27
| ||
| 05:58 | • Ticket [219293ffff]: 3 changes artifact: e04f5405d4 user: kennykb | |
|
2001-02-07
| ||
| 22:56 | • Ticket [219293ffff]: 1 change artifact: ffd2042b15 user: dkf | |
|
2000-11-23
| ||
| 22:44 | • Ticket [219293ffff]: 1 change artifact: a05745c84f user: dkf | |
|
2000-10-26
| ||
| 05:10 | • New ticket [219293ffff]. artifact: 617cee92bf user: nobody | |
Need unique DDE servernames
Closed219293ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 18 years ago
Descriptionplain2000-10-26 05:10:07
OriginalBugID: 2498 RFE
Version: 8.1.1
SubmitDate: '1999-08-04'
LastModified: '2000-04-03'
Severity: MED
Status: UnAssn
Submitter: techsupp
ChangedBy: hobbs
OS: Windows 98
Machine: X86
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'
Name:
Christopher Nelson
DesiredBehavior:
dde servername allows duplicate topic names. It should ensure unique
names as tk appname does by appending #n. Alternatively, each
interpreter on Win32 systems should have a unique appname so you can do
dde servername [tk appname]
However, since 1) dde is a Tcl command and tk is a Tk command (doh!),
that only solves the problem for wish interpreters and 2) I don't know
that tk has any way to find out what other INTERPRETERS exists but dde
could find out what other TOPICS exists in the TclEval service.
dkf Ticket [219293ffff]: 1 change
[History diff]2000-11-23 22:44:29
dkf Ticket [219293ffff]: 1 change
[History diff]2001-02-07 22:56:15
kennykb Ticket [219293ffff]: 3 changes
[History diff]2001-02-27 05:58:16
patthoytsplain2002-03-20 16:25:27
Logged In: YES
user_id=202636
After thinking and testing with dde services I think that
raising an error if the service/topic pair is already
registered probably _IS_ the right way to go. This will make
it simple for 'singleton' windows applications and it's
trivial to make your topic name unique in the application.
This also makes it simple for the application to modify
itself to advertise the new name (eg by changing the
titlebar text).
For instance:
set name [tk appname]
set n 0
while {[catch {dde servername $name}]} {
incr $n
set name "[tk appname] #$n"
}
wm title $name
would be one suggestion.
patthoytsplain2003-02-21 05:49:27
Logged In: YES
user_id=202636
I have a patch for this if we want it. Basically we can call
[dde services TclEval {}] during DdeSetServerName to get a
list of the currently registered Tcl dde servers. We can
then check the name against this list and if necessary add
the numeric suffix as done for [tk appname]
As I can't add files to items in this tracker - the patch
file (patching win/tclWinDde.c and tests/winDde.test) is
loaded in the patches tracker as #690354.
(Note that this patch will almost certainly conflict with
the TIP #120 implementation.)
kennykb Ticket [219293ffff]: 1 change
[History diff]2003-03-22 06:58:08
patthoytsplain2003-03-23 06:24:28
Logged In: YES user_id=202636 I think that this will require a TIP as fixing this problem will mean that dde servers must ensure they check the returned servername. I would add a -force option to force the given name to be used. There is no reason in DDE to require unique names - although then it's not possible to select which server you'll communicate with.
patthoytsplain2003-05-17 07:01:52
Logged In: YES user_id=202636 This has become TIP #130 which has now been applied.
dkfplain2008-11-21 21:31:01
data_type - 210894
patthoytsplain2008-11-28 07:22:23
IP - Comment Removed: 92.238.221.8
Log in (anonymous is fine) to add a comment.