(solved) cout with a double crashes/exits, while printf works January 10, 2009 08:20PM | Registered: 15 years ago Posts: 6 |
double norm_x = delta_x/delta_max; if(norm_x > 1){ norm_x = 1; }; if(norm_x < -1){ norm_x = -1; } double angle_x = (asin(norm_x)*180.0) / 3.1415
cout << angle_x << endl;I get returned to the HBC without even seeing a pixel of text drawn.
printf("%f",angle_x);it works flawlessly.
u32 type; int res = WPAD_Probe(wiimote, &type); if(res == WPAD_ERR_NONE){ return true; }If i would remove the if() or the WPAD_Probe(), it would run fine, else not. However, after several tries it ran fine -- I begin to suspect that the memory gets overwritten in some parts. Is there a way to get something like the linux commands ltrace or strace into the binary to debug it ?
Re: (solved) cout with a double crashes/exits, while printf works January 11, 2009 12:58PM | Registered: 15 years ago Posts: 265 |
Re: (solved) cout with a double crashes/exits, while printf works January 11, 2009 06:02PM | Registered: 15 years ago Posts: 77 |
Re: (solved) cout with a double crashes/exits, while printf works January 12, 2009 02:44AM | Registered: 15 years ago Posts: 6 |