Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: SubLaunch return codes Message-ID: <9270@hoptoad.uucp> Date: 12 Dec 89 21:57:39 GMT References: <9235@hoptoad.uucp> <2768@cbnewsj.ATT.COM> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 35 In article ml10+@andrew.cmu.edu (Michael A. Libes) writes: >>Interesting, because most of the time when I try something like that with a >>SubLaunch, the trap returns a -10 and not a -108. Mike Libes mentioned >>he has the same thing happening with his _Launch program, ie, not >>enough memory to SubLaunch an application results in a -10 return >>code. I'm completely mystified by this! > >The only codes I have ever recieved from the _Launch trap are -10 and >-9. A -9 is returned if the structure passed to _Launch doesn't >correctly point to an application or if the document list is invalid in >any way. > >Perhaps different versions of Multifinder return different codes. I'm >using 6.0.3 and I've never recieved a -108. When two people give results that conflict with mine, I check mine. Sure enough, a _Launch from MPW which does not have enough application memory leaves the Memory Manager error code -108 in register D0. Finder 6.1, System 6.0.3, MultiFinder 6.1b9. I don't know why this isn't the error you're getting. Tech Note #126 says that _Launch errors are returned in D0, so I know I'm looking in the right place. >Does the MacTech Quarterly list any other return codes besides the >Memory manager errors, -10, and -9? I don't have access to that journal. -9 and -10 aren't listed in Inside Macintosh, so it seems unlikely that they are Memory Manager error codes. I suppose they might be MultiFinder error codes, but I haven't seen them. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com "It is better to be a human being dissatisfied than a pig satisfied; better to be Socrates dissatisfied than a fool satisfied." -- John Stuart Mill, UTILITARIANISM (1863)