Couldn't create crash report directory

688 views
Skip to first unread message

Xijing Dai

unread,
Oct 12, 2010, 1:45:36 AM10/12/10
to Crashrpt
Hey,

I got this error, when the path for crpData.pszErrorReportSaveDir
paramter contains the unicode letters.

pszErrorReportSaveDir = %tmp%/Folder
And %tmp% contains unicode letter.

Is that a bug?

Cheers

Xijing Dai

unread,
Oct 12, 2010, 1:47:17 AM10/12/10
to Crashrpt
i forgot to metion:
I install the crash report for 4 exes, they share the same path, only
two of them have the problem, the others work fine.

Xijing Dai

unread,
Oct 12, 2010, 2:55:04 AM10/12/10
to Crashrpt
Found problems, I think.

1. refer to here:
http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx#short_vs._long_names
windows have short name, if i pass the short name for the path to
crash report, it failed to create the directory.

Solution: i try the GetLongPathName, it works then.


2. if the base path is not existed, it failed to create the directory,
etc. D:\tmp\test\crash
if D:\tmp\test doesn't exist, it will fail.

Hope this will help with someone.

> --
> You received this message because you are subscribed to the Google Groups "Crashrpt" group.
> To post to this group, send email to cras...@googlegroups.com.
> To unsubscribe from this group, send email to crashrpt+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/crashrpt?hl=en.
>
>

zeXspectrum

unread,
Oct 13, 2010, 11:36:28 AM10/13/10
to Crashrpt
Ensure you use UNICODE character set in all four of your exes.

BTW, I would recommend you to report issues in the issue tracker
http://code.google.com/p/crashrpt/issues/list instead of writing to
this group. This group is primarily for asking questions. It is
difficult to track changes on issues reported here.

Xijing Dai

unread,
Oct 13, 2010, 10:41:30 PM10/13/10
to cras...@googlegroups.com
ok. no problem

By the way, are u going to solve shortname and long name problem?
because, when i pass the shortname, it won't work.
do u need me to create issue there?

Thanks

zeXspectrum

unread,
Oct 14, 2010, 8:43:36 AM10/14/10
to Crashrpt
Yes, I'll fix the problem with the short names. But in the future,
please use the issue tracker to report issues. Using issue trackier is
more convenient for me to keep in mind all issue to fix and for you to
track changes on your issue.

Thanks for your feedback!

On 14 окт, 09:41, Xijing Dai <dxj19831...@gmail.com> wrote:
> ok. no problem
>
> By the way, are u going to solve shortname and long name problem?
> because, when i pass the shortname, it won't work.
> do u need me to create issue there?
>
> Thanks
>
> On Thu, Oct 14, 2010 at 2:36 AM, zeXspectrum <zexspect...@gmail.com> wrote:
> > Ensure you use UNICODE character set in all four of your exes.
>
> > BTW, I would recommend you to report issues in the issue tracker
> >http://code.google.com/p/crashrpt/issues/listinstead of writing to
Reply all
Reply to author
Forward
0 new messages