OK, it was a silly mistake on my part (isn't it always something dumb????) in that the buf[] array was set to 13, and we were writing inot the 14th... doh! Fixed and now working as I'd expect. That's what you get for trying to be clever I guess... Commit on the way to fix it. david ----- Original Message ----- From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx> To: <openbeosnetteam@xxxxxxxxxxxxx> Sent: Friday, February 08, 2002 6:03 PM Subject: [openbeosnetteam] Re: mbuf's > > > Can you try the code and run test=5Fmbuf=3F It's crashing and it looks > > like > > heap corruption, but I can't see anything obviously wrong. I wonder > > if it's > > something to do with the fact we're using threads=3F > > ISTR we don't need to clone the area for a simple spawn=5Fthread do we=3F > > Just > > for fork(). > > You don't need to clone the area for another thread, just for another > team. > But as I pointed out, the threads don't seem to do anything wrong. > > Adios... > Axel. > > > >