try to run your program in release mode and see , because for me it work well in release mode . Regards