Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpfcso!hpldola!jg From: jg@hpldola.HP.COM (Joe Gilray) Newsgroups: comp.sys.atari.st.tech Subject: RTX programming questions Message-ID: <16960002@hpldola.HP.COM> Date: 25 Jul 90 17:42:55 GMT Organization: HP Elec. Design Div. -ColoSpgs Lines: 43 I have been using Micrortx to write a game based loosely on C-Robots. But more about that when I'm ready to post it. Right now I have two more Micrortx related questions: 1) I have a function that I am using as a process. I want to be able to call this function many times and have each of the separate processes created in this way to be able to commit suicide when they are done. I have tried the following: A) p_delete((char *) NULL); B) p_delete(p_info((char *) NULL, &state)); These should work and do sometimes but other times cause an error with the message (something like): "Unrecoverable loop error in exception processing" Other times the system hangs. BTW, making the process's stack larger seems to delay the problem. I.e. I can create more processes and have more of them successfully commit suicide before the problem occurs. The documentation indicates that a process should be able to commit suicide. The process function that is commiting suicide has four integer arguments passed to it, could this be causing the problem? Do I need to clear them off the stack? 2) How big should I make a process's stack (the last argument to p_create)? I can think of two factors that affect stack size: A) number of arguments passed to the process B) The depth of calls made by the process. Any ideas? Thanks in advance -Joe Gilray