Results 1 to 7 of 7

Thread: Different behaviour between release and debug version

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    N.B. Canada
    Posts
    47
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 8 Times in 7 Posts

    Default Re: Different behaviour between release and debug version

    Basically you gotta look over your code and make sure you are initializing everyhing, you are deleting everything correctly (and setting it to 0), and that you are checking for null pointers. These release vs. debug type of errors are pretty tricky. This may be of some use:

    http://www.codeproject.com/debug/survivereleasever.asp

    Bojan
    The march of progress:
    C:
    printf("%10.2f", x);
    C++:
    cout << setw(10) << setprecision(2) << showpoint << x;
    Java:
    java.text.NumberFormat formatter = java.text.NumberFormat.getNumberInstance();
    formatter.setMinimumFractionDigits(2);
    formatter.setMaximumFractionDigits(2);
    String s = formatter.format(x);
    for (int i = s.length(); i < 10; i++) System.out.print(' ');
    System.out.print(s);

  2. The following 2 users say thank you to Bojan for this useful post:

    yellowmat (3rd March 2006), yop (6th March 2006)

Similar Threads

  1. Replies: 5
    Last Post: 5th October 2008, 06:12
  2. Building debug version under VS2008
    By KenW in forum Installation and Deployment
    Replies: 1
    Last Post: 2nd May 2008, 20:09
  3. Need debug and release versions of Qwt?
    By Tiansen in forum Qwt
    Replies: 1
    Last Post: 28th March 2008, 08:55
  4. Replies: 2
    Last Post: 20th July 2007, 17:34

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.