予期しないクラッシュについて説明するのを手伝ってください!!! 私は持っています:
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;
....等
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))
-<ここでクラッシュしない
どこが間違っているのか、コンパイラが間違っているのか教えてください。