Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!prls!pyramid!amiga!jimm From: jimm@amiga.UUCP (Jim Mackraz) Newsgroups: net.micro.amiga Subject: Re: Question on Intuition Screens and Windows Message-ID: <1248@amiga.amiga.UUCP> Date: Sun, 1-Jun-86 19:19:28 EDT Article-I.D.: amiga.1248 Posted: Sun Jun 1 19:19:28 1986 Date-Received: Tue, 3-Jun-86 22:40:25 EDT References: <8605311838.AA02246@pavepaws> Reply-To: jimm@homer.UUCP (Jim Mackraz) Organization: Commodore-Amiga Inc., 983 University Ave #D, Los Gatos CA 95030 Lines: 31 In article <8605311838.AA02246@pavepaws> dillon@PAVEPAWS.BERKELEY.EDU (Matt Dillon) writes: > > I have a program which spawns other processes (via CreatProc). My >question is simply: > > If the master process creates an intuition screen, can the >subprocesses create windows in this new screen? It seems to work, sorta >(the Amiga crashes when I try to close everything up)... I would like to >know whether it's illegal to do in Intution (and if it isn't, I know the >problem lies somewhere in my code) > > Thanks, > > -Matt What you said sounds OK as it stands, but the dangers lie in different tasks closing up. Opening a typical window leads to the creation of a Port (IDCMP) with the associated allocation of a signal. Closing the window typically deallocates that signal, and should be done by the same task that created it. Another route is to handle all of the port stuff yourself (create windows with IDCMP initially NULL, and so on as described earlier and in the developer's newsletter). I don't think there is anything else. The tasks which calls BeginRefresh should be the same which calls EndRefresh(). If you can get a minimal program to display the problem, I would like to see it. Thanks. jimm