0

I have a strange problem.

Building a debug version gives an error but release build does not.

All (build) settings are the same!

I am using vc++ in vs2012 ultimate

If I build the project alone the same problem appears.

Does some one have a suggestion??

cheers

Hans

1SeoAdvies
  • 103
  • 1
  • 2
  • 10

2 Answers2

1

There are some differences between Rlease and Debug: http://msdn.microsoft.com/en-us/library/aa236698%28v=vs.60%29.aspx, Best practices and tools for debugging differences between Debug and Release builds? and Differences that may occur between Debug and Release builds?.

From my experience, the common mistake are usual caused by uninitialized parameters. In Debug mode, the parameters might initialized as zeros. While in Release mode, it might be uninitialized.

You might have to check your code to make sure every parameters is initialized.

BTW: The compiler will give some useful informations, please read them carefully.

Community
  • 1
  • 1
Steve
  • 1,448
  • 11
  • 18
0

Thanks for thinking with me!!

I removed an added header file and it was solved. This header file was not needed!

Thanks any way!!

Cheers Hans

1SeoAdvies
  • 103
  • 1
  • 2
  • 10