Thread: .Net C++ program runs fine in debug mode but not in normal mode?

  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    1

    Unhappy .Net C++ program runs fine in debug mode but not in normal mode?

    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

  2. #2
    Registered User
    Join Date
    Apr 2010
    Posts
    6
    In my experience there are usually two causes of this phenomenon:

    a) Performing logic inside of asserts.
    b) Having different linker settings on Debug and Release mode.

    Hope it helps!
    -Thinias

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Doesnt crash in debug mode, crashes normally
    By chubigans in forum C Programming
    Replies: 8
    Last Post: 11-10-2009, 11:53 PM
  2. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  3. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  4. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 10:36 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM

Tags for this Thread