I have used beginthread() in my driver to create a thread and I allocate the
stack in my program instead of letting the system to allocate the stack. The
reason is that I want to be able to free the stack evertime the thread end
so I had the program like the folllowing:
child(void far *parm)
char * stack =parm;
So my question is that can I free the stack before calling _endthared()? I
have run the program for some stress test, and so far, it doesn’t seem has
any problem, but I am still wondering is there any good suggestion for the
stack free up.
Thanks in advance!