> Unless you can reproduce that in a simple test, I'd consider it more likely > that something else corrupts the heap (e.g. by overwriting memory) and that > fdopen() is just an innocent bystander becoming the victim. Do we have a debugging memory allocator? It would be possible to port Electric Fence to Haiku. Mike -- Michael David Crawford mdcrawford at gmail dot com GoingWare's Bag of Programming Tricks http://www.goingware.com/tips/