jirentabu / crashrpt

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

CRP_COL_PROBLEM_DESCRIPTION not working #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
***NOTE*** Please do create a NEW issue per each detected bug! Do not list
all detected problems in single issue record!

What steps will reproduce the problem?
1. Add additional information before sending a crash report, adding email and a 
description
2. Send the report
3. Look at the report XML and the email and description fields are duplicated. 
The following code that used to work to pull this information out is now 
returning no string (email works still)

  nResult = crpGetProperty(hReport, CRP_TBL_XMLDESC_MISC, CRP_COL_PROBLEM_DESCRIPTION, 0, szBuffer, BUFF_SIZE, NULL);
  ASSERT(nResult>=0);
  if(nResult>=0)
    crashReport->m_detail.Format(_T("%s"),szBuffer);

What is the expected output? What do you see instead?

This is what crash report XML shows.
Notice these lines repeated, and first instance of desciption is blank, which 
is the one it seems to pull out when using the above code
<UserEmail>Neil.Kay@HexagonMetrology.com</UserEmail> <ProblemDescription/> 
<UserEmail>Neil.Kay@HexagonMetrology.com</UserEmail> <ProblemDescription>Crappy 
Pointcloud</ProblemDescription> 
<UserEmail>Neil.Kay@HexagonMetrology.com</UserEmail> <ProblemDescription>Crappy 
Pointcloud</ProblemDescription> </CrashRpt>

<?xml version="1.0" encoding="UTF-8"?>
-<CrashRpt version="1300"> 
<CrashGUID>2d96344f-51c6-4554-bd37-fc2dcab9d0ca</CrashGUID> 
<AppName>PC-DMIS</AppName> <AppVersion>2012 (QA) Build-471</AppVersion> 
<ImageName>C:\Program Files\WAI\PC-DMIS 2012 QA 471\PCDLRN.exe</ImageName> 
<OperatingSystem>Microsoft Windows XP Build 2600 Service Pack 
3</OperatingSystem> <OSIs64Bit>0</OSIs64Bit> <GeoLocation>en-us</GeoLocation> 
<SystemTimeUTC>2011-11-23T14:19:44Z</SystemTimeUTC> 
<ExceptionType>11</ExceptionType> <GUIResourceCount>2544</GUIResourceCount> 
<OpenHandleCount>494</OpenHandleCount> 
<MemoryUsageKbytes>304920</MemoryUsageKbytes> -<ScreenshotInfo> <VirtualScreen 
height="1024" width="1280" top="0" left="0"/> -<Monitors> <Monitor 
height="1024" width="1280" top="0" left="0" file="screenshot0.png"/> 
</Monitors> <Windows/> </ScreenshotInfo> -<CustomProps> <Prop 
value="32:34:62:66:64:65" name="HaspID"/> <Prop value="00:FF:E7:EE:B0:47" 
name="HostID"/> <Prop value="219065" name="KeyID"/> </CustomProps> -<FileList> 
<FileItem name="crashdump.dmp" description="Crash Minidump"/> <FileItem 
name="crashrpt.xml" description="Crash Description XML"/> <FileItem 
name="regkey.xml" description="Registry Key Dump"/> <FileItem 
name="screenshot0.png" description="Desktop Screenshot"/> </FileList> 
<UserEmail>Neil.Kay@HexagonMetrology.com</UserEmail> <ProblemDescription/> 
<UserEmail>Neil.Kay@HexagonMetrology.com</UserEmail> <ProblemDescription>Crappy 
Pointcloud</ProblemDescription> 
<UserEmail>Neil.Kay@HexagonMetrology.com</UserEmail> <ProblemDescription>Crappy 
Pointcloud</ProblemDescription> </CrashRpt>

What version of CrashRpt are you using?
We have just updated to 1300

What is your version of Visual Studio?
vs2008

What is your version of Windows operating system?
Win7

Please provide any additional information below.

Original issue reported on code.google.com by Neil....@HexagonMetrology.com on 23 Nov 2011 at 9:43

GoogleCodeExporter commented 9 years ago

Original comment by zexspect...@gmail.com on 24 Nov 2011 at 3:29

GoogleCodeExporter commented 9 years ago
Issue 144 has been merged into this issue.

Original comment by zexspect...@gmail.com on 13 Apr 2012 at 3:14

GoogleCodeExporter commented 9 years ago
Fixed in rev. 1336 of trunk

Original comment by zexspect...@gmail.com on 25 Aug 2012 at 5:51