jirentabu / crashrpt

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

CrashSender fails to initialize if two files both have empty destination properties #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install crashrpt in an application
2. install two files with crAddFile2. Make pszDestFile empty string for both.
3. Try to do a crash report

What is the expected output? What do you see instead?
Expected result is to send a crash report with the filename as the destination 
value for both files. The actual result is the CrashSender failing to 
initialize. I guess the problem is you can't have duplicate destination values 
for two or more files. If empty string is passed to the file install function 
it should just use the file name instead of empty string.

What version of the product are you using? On what operating system?

crashrpt: 1.2.10_r1203
windows 7 sp 1
visual studio 2008 built

Please provide any additional information below.

Original issue reported on code.google.com by ABrussZ...@gmail.com on 23 May 2011 at 6:11

GoogleCodeExporter commented 9 years ago
This is a bug. crAddFile2() should fail the second time, because you can't add 
two files with similar destination names. It seems that crAddFile2 succeeds and 
that causes CrashSender's initialization error.

Original comment by zexspect...@gmail.com on 24 May 2011 at 3:45

GoogleCodeExporter commented 9 years ago
Fixed in v.1.3.0. I added a test case to check such situations in the future.

Original comment by zexspect...@gmail.com on 22 Oct 2011 at 11:01

GoogleCodeExporter commented 9 years ago

Original comment by zexspect...@gmail.com on 22 Oct 2011 at 11:01