Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!ucsd!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: Using VBL Tasks in Inits... Message-ID: <6109@hoptoad.uucp> Date: 27 Dec 88 22:12:57 GMT References: <6865@netnews.upenn.edu> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 16 In article <6865@netnews.upenn.edu> bell@eniac.seas.upenn.edu (Mike Bell) writes: > I've written an init that Installs a VBL task. Unfortunately, the procedure >is executed exactly once. It would seem that the vblcount value is not being >reinitialized, so the routine is being removed from the Queque; I am updating >it though. Are there any special precautions that must be taken to install a >VBL task from within an INIT. _Launch and its sister _ExitToShell both remove all VBL tasks that are not in the system heap. Both the queue element and the code address it points to must be in the system heap to survive the launching of an application or the Finder. -- Tim Maroney, Consultant, Eclectic Software, sun!hoptoad!tim "Religion flourishes in greater purity without than with the aid of government." -- James Madison