Artifacts Associated With Ticket 219293ffffffffff
Ticket change [617cee92bf] (rid 92246) by nobody on 2000-10-26 05:10:07:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
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. - foundin initialized to: "final: 8.1.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "81. Bundled Packages"
- title initialized to: "Need unique DDE servernames"
- type initialized to: "Support"
Ticket change [a05745c84f] (rid 96795) by dkf on 2000-11-23 22:44:29:
- subsystem changed to: "90. FAQs"
Ticket change [ffd2042b15] (rid 108830) by dkf on 2001-02-07 22:56:15:
- subsystem changed to: "28. dde Package"
Ticket change [e04f5405d4] (rid 115165) by kennykb on 2001-02-27 05:58:16:
- assignee changed to: "kennykb"
- closedate changed to: "2001-02-26T22:58:16"
- closer changed to: "kennykb"
Ticket change [8f782486a4] (rid 120279) by patthoyts on 2002-03-20 16:25:27:
- icomment:
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. - login: "patthoyts"
- mimetype: "text/plain"
- username: "patthoyts"
- icomment:
Ticket change [2a4bea22aa] (rid 118530) by patthoyts on 2003-02-21 05:49:27:
- icomment:
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.) - login: "patthoyts"
- mimetype: "text/plain"
- username: "patthoyts"
- icomment:
Ticket change [872ee00cba] (rid 131650) by kennykb on 2003-03-22 06:58:08:
- assignee changed to: "patthoyts"
Ticket change [e59e5def38] (rid 104150) by patthoyts on 2003-03-23 06:24:28:
- icomment:
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.
- login: "patthoyts"
- mimetype: "text/plain"
- username: "patthoyts"
- icomment:
Ticket change [a1510d1315] (rid 109692) by patthoyts on 2003-05-17 07:01:52:
- closedate changed to: "2003-05-17T00:01:52"
- closer changed to: "patthoyts"
- icomment:
Logged In: YES user_id=202636 This has become TIP #130 which has now been applied.
- login: "patthoyts"
- mimetype: "text/plain"
- resolution changed to: ""
- status changed to: "Closed"
- username: "patthoyts"
Ticket change [a36d0b356b] (rid 110042) by dkf on 2008-11-21 21:31:01:
- foundin changed to: "None"
- icomment:
data_type - 210894
- is_private changed to: "1"
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "None"
- username: "dkf"
Ticket change [1928267e26] (rid 122770) by patthoyts on 2008-11-28 07:22:23:
- icomment:
IP - Comment Removed: 92.238.221.8
- login: "patthoyts"
- mimetype: "text/plain"
- username: "patthoyts"
- icomment: