Quote Originally Posted by wysota View Post
I do. You are assigning a pointer to a local object to a non-local variable thus your close() method is bound to crash the application.
Yes, but why it works -somehow- in release and crash in debug? An exception is an exception, isn't it?

[OT]S.wysota you were promoted from Guru to Master of Zen, congratulations, you worth it all! [/OT]