Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!tikal!phred!jeffp From: jeffp@phred.UUCP (Jeff Parke) Newsgroups: comp.sys.mac.programmer Subject: StartUp that Launches under MultiFinder Message-ID: <2484@phred.UUCP> Date: 16 Feb 89 19:26:18 GMT Reply-To: jeffp@phred.UUCP (Jeff Parke) Organization: Physio-Control Corp., Seattle, WA Lines: 36 I have a password program in Lightspeed (THINK) C that used to work fine for launching the Finder. The application was set as the startup, then went to Finder (or other application) when done. It always had some funny behavior regarding background patterns when run under MultiFinder. Anyway, now with the recent 3.01p4 upgrade of THINK C, the darn thing won't launch at all. Here's the launch routine: go_launch(filename) Str255 filename; { _exiting(1); Launch(0, filename); /* Str255 launchfile; struct { StringPtr addr; long bufs; } lnchpb, *lnchpb_ptr; lnchpb.addr = (StringPtr) filename; lnchpb.bufs = 0L; lnchpb_ptr = &lnchpb; asm { move.L A0,lnchpb_ptr _Launch } */ } The commented-out code is what used to work fine. It now gives an illegal instruction error when run stand-alone (although does okay when run from THINK C with debugger on). I tried using the _exiting() & Launch procedures with identical illegal instruction error results. Can anyone suggest how I ought to do this in the new 3.01p4 LSC environment? -- uiucuxc!tikal!phred!jeffp {Jeff Parke} Genie : JEFFP | DELPHI : JEFFPARKE | CIS : 71511,1512