If calling "_beginthreadex(NULL,NULL,&MyThread,&MyStruct,NULL,&tID);" to
pass a struct of data, "MyStruct", into the newly created thread--MyThread,
and if the parent thread may terminate earlier, is that true that the piece
of data, "MyStruct", may get lost in "MyThread"? Since "MyStruct" is passed
into "MyThread" by reference.
To keep "MyStruct" in "MyThread" in case that its parent terminates,
"MyStruct" must be duplicated before the parent thread terminates. Am I
right on this?
Thanks a lot!