Home > Software engineering >  Mfc menu bar to add edit box, the release version is no problem, the debug version of collapse.
Mfc menu bar to add edit box, the release version is no problem, the debug version of collapse.

Time:09-19

代码如下图所示,调试时,发现是调用replacebutton时崩溃的,从replacebutton函数进去,调用了setbuttoninfo,里面if判断,pbutton等于空,然后就断言崩溃了

CodePudding user response:

I know, change all the edit variables into a pointer, then it is ok to new,

CodePudding user response:

Not to say that the CSDN programming is one of the biggest Chinese BBS? How so cold and cheerless

CodePudding user response:

This reason and posted as if it is

CodePudding user response:

Debug collapse is much like code has a problem, the debug, collapsed view the call stack, put breakpoints with

CodePudding user response:

The difference between the debug and release versions including variable initialization problem, the above change variable to a pointer and then in the new initialization is equivalent to the ah, I think the reason for this is very reasonable,
  • Related