From: | Andrew Bell |
Date: | 19 Aug 2000 at 13:45:56 |
Subject: | Re: RemTask() within own task code. |
Hi Charlie,
On 16-Aug-00 you wrote: Re: [amiga-c] RemTask() within own task code.
> I think Ive got it working ok.
>
> I do this:
>
> In the main program
>
> struct Task *Subtask = CreateTask(etc, etc...);
>
> Then in the Task Code
>
> DeleteTask(SubTask);
>
> There is no problems, well some but I dont think its to do with the
> task.
Note that if the child task is sharing the same segment list as the
parent process, then the parent must *force* the child to quit before
it quits. Else the child's code will be ripped from under it when the
parent's executable is UnLoadSeg()ed from memory.
This will cause fatal consequences when somthing re-allocates and
destroys the child's code, when the child is still running.
Regards, Andrew Bell.
+----------------------------------------+
email: mailto:andrew.ab2000@bigfoot.com
web: http://www.andrewb.exl.co.uk
+----------------------------------------+
You must be seeing something I didn't say. --Synners.