C++ Gyan

A Blog dedicated to my friends who are C++ programmers.

September 17, 2008

Debug v/s Release mode



Follow these rules
:

Rule 1: Always regularly test both the Debug and Release mode versions of your applications.

Rule 2: Never classify a problem as a Debug -Vs- Release mode problem unless you've tried both versions on several different machines.

Rule 3: Be very cautious that you dont place code that must be executed in a place where it will be compiled out in release mode.

Rule 4: Never assume that your variables are initialized unless you've explicitly initialized them in your code. This includes global variables, automatic variables, malloced data, and newed data.

Rule 5: When you start a project turn the warning level to "Level 3" or "Level 4" and make sure your code compiles with no warnings before you check your code in.

Rule 6: Make sure all references to resources are removed when you delete them from your resource file. This includes references in resource.h.

Check out the following link:

http://www.codeguru.com/cpp/v-s/debug/article.php/c1259/
http://www.codeproject.com/KB/debug/survivereleasever.aspx
http://www.codeproject.com/KB/debug/releasemode.aspx

Posted by Devang at 2:29 PM No comments:
Labels: Tips n Tricks

September 8, 2008

Windows XP command line

Thanks to Jagrut for this. :-)

http://www.ss64.com/nt/

Posted by Jay at 8:02 PM No comments:
Labels: Tool and Utilities
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Gyan Categories

  • FAQ: C/C++ (5)
  • General (3)
  • Open Source (4)
  • References (8)
  • Tips n Tricks (6)
  • Tool and Utilities (13)

Profiles

View Jay Joshi's LinkedIn profileView Jay Joshi's profile

Search This Blog

Subscribe To CppGyan

Posts
Atom
Posts
All Comments
Atom
All Comments

Contributors

  • Anand
  • Chirag Patel
  • Devang
  • JagRut
  • Jay
  • Nikhil
  • Pramod
  • Ravi M R
  • dilip

Followers

Gyan Archive

  • August 2011 (2)
  • June 2011 (1)
  • November 2009 (3)
  • September 2009 (1)
  • May 2009 (1)
  • March 2009 (1)
  • February 2009 (4)
  • December 2008 (1)
  • October 2008 (1)
  • September 2008 (2)
  • July 2008 (8)
  • June 2008 (10)

About.com C / C++ / C#

Loading...

MSDN: Visual C++ Team Blog

Loading...

MFC/C++: The Code Project Latest Articles

Loading...

SourceForge.net: Front page news

Loading...
Simple theme. Powered by Blogger.