svnno****@sourc*****
svnno****@sourc*****
2010年 12月 9日 (木) 22:09:23 JST
Revision: 1190 http://sourceforge.jp/projects/tween/svn/view?view=rev&revision=1190 Author: syo68k Date: 2010-12-09 22:09:23 +0900 (Thu, 09 Dec 2010) Log Message: ----------- 初期化時のExternalException,SEHExceptionをキャッチするように Modified Paths: -------------- trunk/Tween/WebBrowserController.vb -------------- next part -------------- Modified: trunk/Tween/WebBrowserController.vb =================================================================== --- trunk/Tween/WebBrowserController.vb 2010-12-09 12:00:04 UTC (rev 1189) +++ trunk/Tween/WebBrowserController.vb 2010-12-09 13:09:23 UTC (rev 1190) @@ -284,10 +284,17 @@ ' IServiceProvider.QueryService() を使って IProfferService を取得 ocxServiceProvider = DirectCast(ocx, WebBrowserAPI.IServiceProvider) - ocxServiceProvider.QueryService( _ + Try + ocxServiceProvider.QueryService( _ WebBrowserAPI.SID_SProfferService, _ WebBrowserAPI.IID_IProfferService, profferServicePtr) + Catch ex As SEHException + Catch ex As ExternalException + TraceOut(ex, "HRESULT:" + ex.ErrorCode.ToString("X8") + Environment.NewLine) + Exit Sub + End Try + profferService = DirectCast(Marshal.GetObjectForIUnknown(profferServicePtr), _ WebBrowserAPI.IProfferService)