Path: utzoo!censor!geac!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!samsung!uunet!cbmvax!bj From: bj@cbmvax.commodore.com (Brian Jackson) Newsgroups: comp.sys.amiga.tech Subject: Re: Shared IDCMP ports Message-ID: <17404@cbmvax.commodore.com> Date: 11 Jan 91 18:37:13 GMT References: <6841@crash.cts.com> <17379@cbmvax.commodore.com> Reply-To: bj@cbmvax.commodore.com (Brian Jackson) Organization: Commodore, West Chester, PA Lines: 37 ** Error Correction ** In article <17379@cbmvax.commodore.com> bj@cbmvax.commodore.com (Brian Jackson) writes: >In article <6841@crash.cts.com> lkoop@pnet01.cts.com (Lamonte Koop) writes: >> >>I'm having a problem utilizing a shared IDCMP port setup on a window >>arrangement, and wonder if anyone can see a problem with what I'm doing. >> [...] >>Now, the problem comes when I try to close the second window. NOw, >>I realize you cannot simply do this normally, so I use the following >>routine: >> [ some example code deleted ] >> swin->UserPort = NULL; >> Permit(); >> CloseWindow(swin); >>} > >Try adding > > ModifyIDCMP(swin,0L); > >between the Permit() and the CloseWindow() calls. It's the only >difference between yours and the one that I have (that works.) > >bj Argh!! Try adding it BEFORE the Permit() call! My mistake (the excuse is my staying up all night playing with computers). Thanks to Peter!! ----------------------------------------------------------------------- | Brian Jackson Software Engineer, Commodore-Amiga Inc. GEnie: B.J. | | bj@cbmvax.cbm.commodore.com or ...{uunet|rutgers}!cbmvax!bj | | "It can be done." != "It should be done." | -----------------------------------------------------------------------