fgokey / crashrpt

Automatically exported from code.google.com/p/crashrpt
0 stars 0 forks source link

VS2008 C++ build of MFCDemo with 1-byte Struct alignment, CrashRpt hangs #207

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using VS2008 C++ to build CrashRpt libs and demo programs.  I am testing 
MFCDemo because this is similar in structure to my commercial application.

If I change the Project Properties - Configuration Properties - Code Generation 
- Struct Member Alignment from 'Default' to '1 Byte (/Zp1)'
for projects 'CrashRpt', 'CrashRptProbe', 'CrashSender', 'MFCDemo'.
then rebuild all of them, running the MFCDemo and doing 'save' hangs the 
program, no crash report generated at all.
if I set that setting for 'Struct Member Alignment' back to 'Default', the 
crash report works fine.

I need this 1 byte alignment for my real software application.   Rebuilding the 
projects 'CrashRpt', 'CrashRptProbe', 'CrashSender' to 1 byte alignment, to use 
with my program again causes it to hang.

Note: if I leave the 'Default' setting and build the library with that, leaving 
my application to use the 1 Byte alignment, the crInstall won't initialize, 
failing due to the first check inside the code of ' crInstall() ' at pInfo->cb 
!= sizeof(CR_INSTALL_INFOA).

What version of CrashRpt are you using?  1.4.2_r1609

What is your version of Visual Studio? 2008

What is your version of Windows operating system? XP SP3

Original issue reported on code.google.com by planet.r...@gmail.com on 29 May 2013 at 6:42

GoogleCodeExporter commented 9 years ago
You need to set /Zp1 for all projects in CrashRpt solution, then it should work 
ok.

Original comment by zexspect...@gmail.com on 12 Jun 2013 at 2:14

GoogleCodeExporter commented 9 years ago

Original comment by zexspect...@gmail.com on 12 Jun 2013 at 2:15