Actually the problem was in Leopard OS It was still beta and probably had a lot of bugs. At least the problem described that is a bug in Leopard. Under Tiger same code compiles and works ok -- View this message in context: http://www.nabble.com/EXC_BAD_ACCESS-exceptions-tf4682783.html#a13582905 Sent from the gcc - Help mailing list archive at Nabble.com.