Click here to Skip to main content
16,007,843 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Want to Learn Com Pin
manju#12318-Jun-08 19:57
manju#12318-Jun-08 19:57 
GeneralRe: Want to Learn Com Pin
sudhir_Kumar18-Jun-08 20:30
sudhir_Kumar18-Jun-08 20:30 
AnswerRe: Want to Learn Com Pin
Jijo.Raj18-Jun-08 20:30
Jijo.Raj18-Jun-08 20:30 
AnswerRe: Want to Learn Com Pin
CPallini18-Jun-08 21:15
mveCPallini18-Jun-08 21:15 
AnswerRe: Want to Learn Com Pin
Steve Echols18-Jun-08 22:57
Steve Echols18-Jun-08 22:57 
AnswerRe: Want to Learn Com Pin
Hamid_RT19-Jun-08 0:36
Hamid_RT19-Jun-08 0:36 
AnswerRe: Want to Learn Com Pin
Alan Balkany19-Jun-08 4:13
Alan Balkany19-Jun-08 4:13 
QuestionDebug vs Release mode?!?! Pin
Kiran Satish18-Jun-08 15:07
Kiran Satish18-Jun-08 15:07 
I am trying to find out whats the problem with my application when running in debug and release modes. The same code in another application (similar application) doesnt produce the following behavior. In debug mode everything is fine. The situation is, I am initializing an array while starting the application (for example as follows)-
<br />
norm_radius = sqrt(xpos * xpos + ypos * ypos) / constant;<br />
norm_radius_2  = pow(norm_radius, 2.0);<br />
...<br />
sin_angle   = sin(angle);      cos_angle   = cos(angle);<br />
sin_2angle  = sin(2 * angle);  cos_2angle  = cos(2 * angle);<br />
...<br />
data[0] = 0.0;<br />
data[1] = 2       * norm_radius * sin_angle;<br />
data[2] = 2 * norm_radius * cos_angle;<br />
   <br />
data[3] = sqrt_6  * norm_radius_2 * sin_2angle;<br />
data[4] = sqrt_3  * (2   * norm_radius_2 - 1);<br />
data[5] = sqrt_6  * norm_radius_2 * cos_2angle;


noting complicated, just simple assignments with some arithmetic functions. But when I run it in release mode, the data is not the same as it is in debug mode (which is the correct one). BTW the above code is in a function which I call form another function while starting the application.
Any ideas/suggestions for why this is happening??

-thanks

PKNT

AnswerRe: Debug vs Release mode?!?! Pin
Stephen Hewitt18-Jun-08 16:45
Stephen Hewitt18-Jun-08 16:45 
GeneralRe: Debug vs Release mode?!?! Pin
Kiran Satish18-Jun-08 17:20
Kiran Satish18-Jun-08 17:20 
AnswerRe: Debug vs Release mode?!?! Pin
Jijo.Raj18-Jun-08 16:56
Jijo.Raj18-Jun-08 16:56 
GeneralRe: Debug vs Release mode?!?! Pin
Kiran Satish18-Jun-08 17:13
Kiran Satish18-Jun-08 17:13 
AnswerRe: Debug vs Release mode?!?! Pin
Nibu babu thomas18-Jun-08 17:31
Nibu babu thomas18-Jun-08 17:31 
GeneralRe: Debug vs Release mode?!?! Pin
Kiran Satish18-Jun-08 17:35
Kiran Satish18-Jun-08 17:35 
GeneralRe: Debug vs Release mode?!?! Pin
Nibu babu thomas18-Jun-08 17:37
Nibu babu thomas18-Jun-08 17:37 
GeneralRe: Debug vs Release mode?!?! Pin
Kiran Satish19-Jun-08 10:07
Kiran Satish19-Jun-08 10:07 
AnswerRe: Debug vs Release mode?!?! Pin
Saurabh.Garg19-Jun-08 3:25
Saurabh.Garg19-Jun-08 3:25 
QuestionIs there a 64bit HID.LIB and SETUPAPI.LIB ? [modified] Pin
abiemann18-Jun-08 7:35
abiemann18-Jun-08 7:35 
AnswerRe: Is there a 64bit HID.LIB and SETUPAPI.LIB ? Pin
Saurabh.Garg18-Jun-08 8:11
Saurabh.Garg18-Jun-08 8:11 
GeneralRe: Is there a 64bit HID.LIB and SETUPAPI.LIB ? [modified] Pin
abiemann18-Jun-08 11:40
abiemann18-Jun-08 11:40 
GeneralRe: Is there a 64bit HID.LIB and SETUPAPI.LIB ? [modified] Pin
George Helyar3-Dec-08 9:44
George Helyar3-Dec-08 9:44 
QuestionDebugging information missing! Pin
bosfan18-Jun-08 6:08
bosfan18-Jun-08 6:08 
AnswerRe: Debugging information missing! Pin
Chris Losinger18-Jun-08 6:37
professionalChris Losinger18-Jun-08 6:37 
GeneralRe: Debugging information missing! Pin
bosfan18-Jun-08 22:36
bosfan18-Jun-08 22:36 
AnswerRe: Debugging information missing! Pin
Jijo.Raj18-Jun-08 9:01
Jijo.Raj18-Jun-08 9:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.