I am using .NET c++, my program runs fine i debugging mode shows NULL Reference exception when run without debugging. It's on the line
Reservation *res = new Reservation;
if i comment the above statement I get error on some other line. Errors are mostly on the lines where new operator (memory allocation). I can't debug it because it runs fine in debug mode.
any suggestions? thanks in advance