William A. Rowe, Jr. wrote:
Henry Jen wrote:- *thethd = thd->td; + *thethd = &thd->td;-1 - I don't know if you noticed but you just returned to the caller the address of the HANDLE in the thd object, meaning that it won't outlive the destruction of the thd.
Good point. What's your suggestion? The patch is bad, but it won't change the fact this is a bug. Unfortunately, I don't see a easy way out top off my head. Cheers, Henry
