未曾遇到过的异常提示!求救

未曾遇到过的错误提示!求救!

static   int   a=0;//一张图片的数量!
CStatusBar   *statusbar=&(((CMainFrame*)AfxGetApp())-> m_wndStatusBar);

        CString     tring;
tring.Format( "现在是第%d张图片被采进来 ",a);

statusbar-> SetPaneText(0, "iyuugikb ");   《--   在调试到这里的时候
会弹出红叉的警告错误提示窗口!这是什么样的错误提示没有遇到过!怎么解决
这段代码在我的Generic   Class里面我调用里主矿价状态栏   想在上面显示东西!

------解决方案--------------------
看statusbar是否有效
------解决方案--------------------
关注