Niklas wrote:
> The first suggestion for any crash is to look at the stack trace. What
> do you see there?

Thank you for your suggestions.
 As you said  I analyzed the call stack. And in the SfxMedium* 
SfxApplication::InsertDocumentDialog(sfx2\source\appl\appopen.cxx), 
  sal_uInt32 nError = pMatcher->DetectFilter( *pMedium, &pFilter, FALSE );
  if ( nError == ERRCODE_NONE && pFilter )
    pMedium->SetFilter( pFilter );
  else
   DELETEZ( pMedium );
when insert a *.mpeg, the "nError == ERRCODE_NONE && pFilter " always is 
true.Then the program crash. 
If I change
sRealType = ::rtl::OUString::createFromAscii("calc_Text_txt_csv_StarCalc");
To:
sRealType = ::rtl::OUString::createFromAscii("writer_Text_encoded");
in TypeDetection::impl_checkResultsAndAddBestFilter(...) 
(filter\source\config\cache\typedetection.cxx), The bug will be fixed.
I'm looking forward to your advice!

Best Regards ,

Mao Yonggang




毛勇岗
2007-04-28



发件人: Niklas Nebel
发送时间: 2007-04-28 01:11:51
收件人: [email protected]
抄送: 
主题: [?? Probable Spam] Re: [sc-dev] There is a new crash bug!

毛勇岗 wrote:
> Result: Crash .
> 
> This bug is not existed in the version of m120. I think it may be caused by 
> the changes of filter in sfx2.
> 
> I'm  looking forward to your suggestion.

The first suggestion for any crash is to look at the stack trace. What
do you see there?

Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to