Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rutgers!gatech!pyr!yak!davidc From: davidc%yak@gatech.edu (Dave Corbin) Newsgroups: comp.sys.amiga Subject: Help with CreateProc() Message-ID: <4407@pyr.gatech.EDU> Date: Sun, 8-Nov-87 16:40:14 EST Article-I.D.: pyr.4407 Posted: Sun Nov 8 16:40:14 1987 Date-Received: Tue, 10-Nov-87 06:25:36 EST Sender: news@pyr.gatech.EDU Reply-To: davidc%yak@gatech.edu (Dave Corbin) Organization: Office of Computing Services, Georgia Tech Lines: 38 Okay. I'm having problems using CreateProc. I've created this small example that easily demonstrates my problem. The two files, test.c and ldr.c are both compiled and linked into their own separate runtime modules. (Using Manx 3.4a). The Problem: 'test' works just fine. When I execute 'ldr', it completes normally, but 'test' does not. If I look at the system's list of TASKs, then I find that there is a new task called TEST that is WAITING. Can anyone tell me what I am doing that is wrong? Also, what is it that a Process has that a Task doesn't that allows it to access AmigaDos. test.c: main() { Delay(100L); kprintf("Testing\n"); } ldr.c: #include main() { ULONG seg,LoadSeg(); seg = LoadSeg("test"); if (seg == 0) { printf ("Can't Load 'seg'\n"); exit(1); } if (CreateProc("TEST",0L,seg,500L) == 0) { printf ("Can't CreateProc()\n"); exit(1); } printf("done\n"); }