请帮我解释一下意外崩溃!!!我有:
xh
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;
....ETC
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))
-<这里不会崩溃
if((bitmap.S2L_NOTIFY.color.state == 3))
-<这里不会崩溃
请告诉我我错在哪里或编译器错了?