Robert #1 i only get this error in debug build Assert is a debugging tool - the compiler ignores it when building in release mode.