mec@cbnewsj.ATT.COM (michael.e.connick) (12/05/89)
Are the return codes for the SubLaunch trap documented anywhere? The VERY early release of the MultiFinder developers kit I got from APDA doesn't provide this information. Does the latest version? In particular I'm interested in finding out what a -108 return code means. ----------------------------------------------------- Michael Connick mec@mtfmi.ATT.COM 201-957-3057 AT&T Bell Labs MT 3F-113 (Dept. 79153)
athos@apple.com (Rick Eames) (12/05/89)
In article <2618@cbnewsj.ATT.COM> mec@cbnewsj.ATT.COM (michael.e.connick) writes: > In particular I'm interested in finding out what a -108 return code > means. Out of Mr. Memory error. Rick Eames Not Apple's opinions.....blah.....blah.......blah
earleh@eleazar.dartmouth.edu (Earle R. Horton) (12/05/89)
In article <2618@cbnewsj.ATT.COM> mec@cbnewsj.ATT.COM (michael.e.connick,mt,) writes: >Are the return codes for the SubLaunch trap documented anywhere? The >VERY early release of the MultiFinder developers kit I got from APDA >doesn't provide this information. Does the latest version? > >In particular I'm interested in finding out what a -108 return code >means. I didn't even have to look this one up, but here is the appropriate C language header file line. #define memFullErr -108 /* Not enough room in heap zone */ -108 is the generic "no memory" error code. I can't think of any reason for _Launch to have specific error codes of its own. Earle R. Horton
ml10+@andrew.cmu.edu (Michael A. Libes) (12/05/89)
> #define memFullErr -108 /* Not enough room in heap zone */ > > -108 is the generic "no memory" error code. I can't think of any > reason for _Launch to have specific error codes of its own. I have gotton a return code of -10 when there is insufficient memory for _Launching. BTW: SystemErrors DA tells me that this is a Color Quickdraw error. - luni
mec@cbnewsj.ATT.COM (michael.e.connick) (12/05/89)
In article <5577@internal.Apple.COM> athos@apple.com (Rick Eames) writes: > > In particular I'm interested in finding out what a -108 return code > > means. > > > Out of Mr. Memory error. Ok, well then how is that different from a -10, which also appears to be an "out of memory" error? ----------------------------------------------------- Michael Connick mec@mtfmi.ATT.COM 201-957-3057 AT&T Bell Labs MT 3F-113 (Dept. 79153)
mec@cbnewsj.ATT.COM (michael.e.connick) (12/05/89)
In article <8ZSpsEa00Uh7Q2i3Qq@andrew.cmu.edu> ml10+@andrew.cmu.edu (Michael A. Libes) writes: > > -108 is the generic "no memory" error code. I can't think of any > > reason for _Launch to have specific error codes of its own. > > I have gotton a return code of -10 when there is insufficient memory for > _Launching. BTW: SystemErrors DA tells me that this is a Color > Quickdraw error. Yes, I have also seen -10 when SubLaunching with insufficient memory. BTW, I want you to know how much I like your _Launch program! My $10 check to you went into the mail yesterday. Outstanding job! ----------------------------------------------------- Michael Connick mec@mtfmi.ATT.COM 201-957-3057 AT&T Bell Labs MT 3F-113 (Dept. 79153)
athos@apple.com (Rick Eames) (12/06/89)
In article <2637@cbnewsj.ATT.COM> mec@cbnewsj.ATT.COM (michael.e.connick) writes: > Ok, well then how is that different from a -10, which also appears to > be an "out of memory" error? -10 is *supposed* to be a noColMatch error from Mr. Color Manager. I don't know why that you are getting this as a memory error... Rick Eames Not Apple's opinions.....blah.....blah.......blah
rang@cs.wisc.edu (Anton Rang) (12/07/89)
In article <5604@internal.Apple.COM> athos@apple.com (Rick Eames) writes: >-10 is *supposed* to be a noColMatch error from Mr. Color Manager. I >don't know why that you are getting this as a memory error... If I recall correctly, MultiFinder returns error codes around the -10 range when launching fails (in pre-6.0.4, -9 is "failed to open resource fork", for example). These are inconsistent with the rest of the system; -10 may be another example of this. Anton +---------------------------+------------------+-------------+ | Anton Rang (grad student) | rang@cs.wisc.edu | UW--Madison | +---------------------------+------------------+-------------+
es2q+@andrew.cmu.edu (Erik Warren Selberg) (12/08/89)
along with that (ps - hi mike!), I've heard reports that the standard routine described in one of the tech notes will drop DTR on a modem when using sublaunching w/ multifinder. How does one circumvent this, as having the system drop you is very disconcerting. ------------------/ Megalo Erik \-------------------- GEnie: E.SELBERG | Selberg | CIS: 71470,2127 Delphi: LORDERIK | lost in | Fido: 129/107 BBS: 412 268 8974 | Andrew! | MacList: 6009/1 ------------------\ help! help! /-------------------- ...I'm being confused at CMU!
tim@hoptoad.uucp (Tim Maroney) (12/09/89)
In article <2618@cbnewsj.ATT.COM> mec@cbnewsj.ATT.COM (michael.e.connick,mt,) writes: >Are the return codes for the SubLaunch trap documented anywhere? The >VERY early release of the MultiFinder developers kit I got from APDA >doesn't provide this information. Does the latest version? > >In particular I'm interested in finding out what a -108 return code >means. It's ordinarily memFullErr, "Not enough room in heap zone". Since no heap zones are involved, we have to assume that the MF creators decided to get creative and use this existing error code to mean that there's not a big enough chunk of application memory to launch it. Sure enough, I just launched MPW, made sure there wasn't enough space to launch ResEdit, put a breakpoint on Launch, tried to launch RsEdit from the MPW Shell, and Launch returned with a -108 (0xffffff94). -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com This message does represent the views of Eclectic Software.
mec@cbnewsj.ATT.COM (michael.e.connick) (12/11/89)
In article <9235@hoptoad.uucp> tim@hoptoad.UUCP (Tim Maroney) writes: > It's ordinarily memFullErr, "Not enough room in heap zone". Since no > heap zones are involved, we have to assume that the MF creators decided > to get creative and use this existing error code to mean that there's > not a big enough chunk of application memory to launch it. > > Sure enough, I just launched MPW, made sure there wasn't enough space > to launch ResEdit, put a breakpoint on Launch, tried to launch RsEdit > from the MPW Shell, and Launch returned with a -108 (0xffffff94). 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! ----------------------------------------------------- Michael Connick mec@mtfmi.ATT.COM 201-957-3057 AT&T Bell Labs MT 3F-113 (Dept. 79153)
ml10+@andrew.cmu.edu (Michael A. Libes) (12/12/89)
>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. There should also be a code for "Heap is fragmented, not enough contiguous space." I've recieved a message like this from Finder but couldn't duplicate the conditions to test it within my _Launch program. 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. - luni
tim@hoptoad.uucp (Tim Maroney) (12/13/89)
In article <UZV2vy_00UhBE2EYwo@andrew.cmu.edu> 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)