예기치 않은 충돌을 설명하는 데 도움주세요! 내가 가진 : 등QT 4.8 보통 비교시 충돌 발생
x.h
class x: QObject
struct
{
struct
{
struct
{
int state;
double curstring;
QTimer timer_scroll;
QTimer timer_done;
}color;
struct
{
int state;
double curstring;
QTimer timer_scroll;
QTimer timer_done;
}mono;
}S2L_NOTIFY;
....
x.cpp
void x::draw(const int type, QString str, bool isNeedAnswer)
{
if(type == 3)
{
//here is crash!
if(bitmap.S2L_NOTIFY.mono.state == 3 && bitmap.S2L_NOTIFY.color.state == 3)
{
if((bitmap.S2L_NOTIFY.mono.state == 3))
-< 여기에 충돌하지
어디 내가 잘못 또는 compilator 잘못 알려주세요 - <
if((bitmap.S2L_NOTIFY.color.state == 3))
여기에 충돌하지?
'valgrind'또는 다른 디버거에서 프로그램을 실행할 수 있습니까? – sarnold
적어도 컴파일 할 코드를 게시해야합니다. 제공 한 것은 foobar입니다. –