Microsoft.Office.Interop.PowerPoint.SlideShowWindow.Presentation.Slides[j]获取频繁,有时候报错:消息筛选器显示应用程序正在使用中。 (异常来自 HRESULT:0x8001010A (RPC_E_SERVERCALL_RETRYLATER))
使用try...catch...重试,并且在catch中等待50ms
private async Task<Slide> GetSlide(Presentation presentation, int j) { Slide slide; try { slide = presentation.Slides[j]; } catch { await Task.Delay(50); slide = await GetSlide(presentation, j); } return slide; }
- RPC_E_SERVERCALL_RETRYLATER SlideShowWindow Presentation 应用程序 0x8001010Arpc_e_servercall_retrylater slideshowwindow 0x8001010a slideshowwindow rpc_e_servercall_retrylater presentation 应用程序0x000007b x文件 presentation-nuclear presentation-nuclear presentation nuclear power presentation markdown for 北航 英语课presentation工程师