Tuesday, July 1, 2014

Hidden VC++ Compiler switch for showing class layout in Visual Studio

In case you want to dump the class layout, there is a hidden compiler switch in Visual Studio . It will show class layout during build in output window. Enable it in Project->Properties>C++>CommandLine>Additionaloptions. Add /d1reportAllClassLayout as shown below

 The class layout would show as shown in below

No comments:

Post a Comment

Keep an eye on your Native API prototype for interop calls

Few weeks back, we have observed "an unexpected process termination" crash in a WPF app. From the crash dump, provides below calls...