Thanks very much for your responses. My app was using pthreads but I was using the lwp library which, as you say, is likely to cause problems. Using afsrpc rather than the lwp libraries solved my problem. Thanks, Richard.