Subj : Re: Segmentation fault when using malloc with threads To : comp.programming.threads From : Paul Pluzhnikov Date : Sun Feb 27 2005 10:49 am "Karthik007" writes: > if i use memcpy() function to copy the data pointed by > arg ("&data[cliNum]") into the memory pointed by "info" then this problem > can be solved i guess. Am i right in this regard ? Yes, that's correct. However, since you aready have the data[cliNum] allocated, why do you feel you need to 'malloc/memcpy/free', when you could just use the original data[cliNum] ? Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. .