From: Jim I. <ji...@ap...> - 2002-05-27 18:48:11
|
Yes, this is the suggested workaround. The problem is that we need to make sure to keep around the GrafPort for a window as long as any of its widgets might touch it. There is a ref-counting scheme to try to make sure this works, but destruction in Tk can be quite contorted, and I haven't had the time to figure out how to get this case to work properly. Since there is an easy workaround, the bug stands. Jim > i used "after 40 call_menu_again..." to get around this. > > very dirty! > > mads > > > -----Original Message----- > From: tcl...@li... > [mailto:tcl...@li...]On Behalf Of Mats Bengtsson > Sent: 26 May 2002 15:45 > Cc: tc...@li... > Subject: Re: [MACTCL] MenuButton problem > > > > > ma...@co... wrote: >> >> Hi, >> >> I have a menubtton which creates a secondary toplevel via its command. > When >> that toplevel is destroyed, the original menubutton that called it > generates "Cannot >> call post menu while already posting menu", and the application becomes >> unresponsive. I've seen a few references to similar problems with the Mac >> MenuButton on the web, but no solution or workaround. Is this a known > bug, >> and is there any fix? >> Thanks, >> Daniel Barrett > > Besides the 'info script' and the socket problems, this is the > only bug that I haven't found a workaround for. (8.3.4) > It doesn't help to manually du unpost either. > Any idees anyone. > > /Mats > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Tcl-mac mailing list > Tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Tcl-mac mailing list > Tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac > -- ++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++= Jim Ingham ji...@ap... Developer Tools - gdb |