Subj : simple: passing a pointer to a handle to another thread To : comp.programming.threads From : LeftHorn Date : Fri Sep 09 2005 05:37 am hi, have a little problem. i have a main() function where i creates a class. then i have a thread, where when initiated i pass the pointer (in the params) to this class (among other things). Inside this thread i i then access this object through a pointer, an one of the functions is a function that returns a handle to a Semaphore. But when doing that - i get an error "access overrun" attempt to access local block - when i have the class generated inside the thread, there is no problem. How can i share a handle that isnt global among threads ? Hope its the right NG, and you can help: running WinXP and using VC60. .