Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!cbmvax!carolyn From: carolyn@cbmvax.commodore.com (Carolyn Scheppner - CATS) Newsgroups: comp.sys.amiga.programmer Subject: Re: Does Execute() work the same on A3000? Message-ID: <22720@cbmvax.commodore.com> Date: 26 Jun 91 23:40:56 GMT References: <1991Jun25.224054.24632@wehi.dn.mu.oz> Reply-To: carolyn@cbmvax.commodore.com (Carolyn Scheppner - CATS) Organization: Commodore, West Chester, PA Lines: 38 In article <1991Jun25.224054.24632@wehi.dn.mu.oz> baxter_a@wehi.dn.mu.oz writes: >I am having a little trouble debugging something for the A3000. >I don't have one, so identifying the crook code is dificult, but >I think I've found it. To prevent the Lattice window opening >if starting from WB, I do: > >if (argc == 0) /* running under workbench */ > { > _ufbs[0].ufbfh = NULL; > _ufbs[1].ufbfh = _ufbs[0].ufbfh; > _ufbs[1].ufbflg = UFB_NC; > _ufbs[2].ufbfh = _ufbs[0].ufbfh; > _ufbs[2].ufbflg = UFB_NC; > handle = (struct FileHandle *)(_ufbs[0].ufbfh << 2); > process = (struct Process *)FindTask(0); > process->pr_ConsoleTask = (APTR)handle->fh_Type; > x = 0; > } Blah - I skimmed that pretty fast but it looks to me like you are referencing off NULL POINTERS into low memory which is different on every model and OS version. Yuck. PLEASE - Either use the mechanism PROVIDED BY Lattice (ie - compile _main.c with the -dTINY flag and link with it) OR use Open("NIL:",MODE_OLDFILE) and place the returned handle in that first place where you are placing NULL !!!!!!!!!!!!!!!!!!!!!! Thanks you. BTW - If you had an 020/MMU or '030 and Enforcer, you woulda been beeping ! -- ========================================================================== Carolyn Scheppner -- Tech. Mgr. CATS - Commodore Amiga Technical Support PHONE 215-431-9180 {uunet,rutgers}!cbmvax!carolyn carolyn@commodore.com Signed characters are xenophobic. ==========================================================================