Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!blake!dlarson From: dlarson@blake.acs.washington.edu (Dale Larson) Newsgroups: comp.sys.amiga.tech Subject: Spawning an independent, concurent process Message-ID: <3301@blake.acs.washington.edu> Date: 18 Aug 89 19:21:32 GMT Organization: The Evergreen State College, WA Lines: 65 Keywords: LoadSeg, CreateProc /* Go ahead, eat this line... */ I am trying to load and start a process to run concurently with the parent process. The problem is that I keep getting visits from the guru when I try the CreateProc. Below are two VERY short programs that I am compiling with Aztec 3.6a. The first is supposed to load and start the second which is just supposed to send some junk to my debug terminal. -------------- /* Program 1 */ #includemain() { LONG newseg; if ( (newseg = LoadSeg("test")) != 0L) { printf ("Successfully loaded segment to %ld.\n", newseg); if ( (CreateProc("mytest", 0L, newseg, 4000L) ) != 0L) { puts("Successfully CreateProc'ed"); /* Yeah, I realize that this loses some memory and that at some point in the future I would need to UnLoadSeg */ } else { puts("failed CreateProc."); UnLoadSeg(newseg); puts("unloaded."); } } else { puts("failed LoadSeg."); } } ------------------- /* program 2 */ #include main() { KPutStr ("I was here..."); Delay(500L); KPutStr ("But now I'm leaving!"); } --------------------- Pray tell, to what depths of stupidity have I fallen this time? -- dTb dTb I know enough about epistemology to know that I don't know anything about programming OR epistemology! Digital Teddy Bear dlarson@blake.acs.washington.edu