Reputation: 103
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
Upvotes: 0
Views: 400
Reputation: 103
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
Upvotes: 0
Reputation: 1510
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.
Upvotes: 1