This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

keil v5: assign member variables when creating C++ class object go wrong, after new operator all assignments are not what I set.

after executing constructors:

m_Handle and bbb both with int type are not what I write, it seem it's memory alignment problem but all related class has 32bits int type member variables.

And  I define g_pointer=(int*)m_Handle, the address  g_pointer saved has right value '0x0999' which I set m_handle. Why m_Handle and other member variables  have wrong results?