Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!ub!acsu.buffalo.edu From: gbbrooks@acsu.buffalo.edu (george b brooks) Newsgroups: comp.sys.amiga.programmer Subject: Help! (AmigaDOS CreateProc/LoadSeg) Message-ID: <63329@eerie.acsu.Buffalo.EDU> Date: 5 Mar 91 17:37:17 GMT Sender: news@acsu.Buffalo.EDU Organization: SUNY Buffalo Lines: 25 Nntp-Posting-Host: autarch.acsu.buffalo.edu I've been having difficulty trying to use AmigaDOS's processes. I'm using Benchmark Modula-2, and my difficulty resides in the calls to 'CreateProc' and 'LoadSeg'. The problem stems from the fact that I do NOT know really how LoadSeg works. Does load seg work like: Segment := LoadSeg("df1:HelloWorld"); ID := CreateProc(ADR("NewProcess"),0D,Segment,10000D); (Where HelloWorld is a compiled M-2 program on disk) Or like..... Segment := LoadSeg(ADR(HelloWorldProcedure)); ID := CreateProc(ADR("NewProcess"),0D,Segment,10000D); (Where HelloWorldProcedure is a M-2 procedure in the same code) Or what DOES LoadSeg do? Or, rather, I'd like to find out how to create a new process executing concurrently with my original process from either a procedure or a compiled (and linked :-) ) file.... the above two do NOT work. The first one does NOT make an error, yet no second process is started. The second one gurus the system with error 4 (address?) -Thanks, Brandon!