Microsoft MVP성태의 닷넷 이야기
오류 유형: 315. 닷넷 프로파일러의 오류 코드 정보 [링크 복사], [링크+제목 복사],
조회: 21260
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 1개 있습니다.)

닷넷 프로파일러의 오류 코드 정보

오픈 소스가 좋긴 좋군요. ^^

.NET Profiler 관련해서 ICorProfilerInfo4 인터페이스의 메서드를 호출하는 데 HRESULT 반환값이 0x8013137B로 나왔습니다. 깜깜하군요. ^^;

그런데, 검색해 보니 github에 공개된 CoreCLR 소스코드의 XML 문서에,

CoreCLR
; https://github.com/dotnet/coreclr/blob/master/src/inc/corerror.xml

다음의 설명이 있습니다.

<HRESULT NumericValue="0x8013137B"> 
    <SymbolicName>CORPROF_E_CALLBACK4_REQUIRED</SymbolicName> 
    <Comment> Profiler must implement ICorProfilerCallback4 interface for this call to be supported. </Comment> 
</HRESULT> 

그렇습니다. 프로파일러 측에서 ICorProfilerCallback4 인터페이스를 구현하지 않았다고 설명해주니 문제를 빠르게 인지할 수 있었습니다. 하다 보니, 0x80131363 오류 코드도 만나게 되었는데요, 마찬가지로 해당 문서를 보면,

<HRESULT NumericValue="0x80131363"> 
    <SymbolicName>CORPROF_E_UNSUPPORTED_CALL_SEQUENCE</SymbolicName> 
    <Comment> A call was made at an unsupported time.  Examples include illegally calling a profiling API method asynchronously, calling a method that might trigger a GC at an unsafe time, and calling a method at a time that could cause locks to be taken out of order.  </Comment> 
</HRESULT> 

원인은, C# 코드에서 P/Invoke를 통해 닷넷 프로파일러의 ICorProfilerInfo4의 메서드를 호출했기 때문입니다. (해당 메서드는 절대로 닷넷측의 콜스택 상에서 호출되어서는 안됩니다.)

이 정도면 엄청 상세한 오류 설명입니다. ^^ 닷넷 프로파일러 만드시는 분들은 github의 CoreCLR (소스 코드까지는 아니더라도) 내부 오류 코드 설명을 꼭 참조하시기 바랍니다. ^^




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 3/22/2016]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 121  122  123  124  [125]  126  127  128  129  130  131  132  133  134  135  ...
NoWriterDateCnt.TitleFile(s)
10828정성태8/10/201532920웹: 30. Edge 브라우저에서 "이 웹 사이트에는 Internet Explorer가 필요함" 단계를 없애는 방법 [1]
10827정성태7/8/201533838개발 환경 구성: 273. Visual Studio 2015에서 Github와 연동하는 방법 [3]
10826정성태7/8/201524174오류 유형: 301. The trust relationship between this workstation and the primary domain failed. - 두 번째 이야기
10825정성태7/8/201522852개발 환경 구성: 272. Visual Studio IDE 설치 없이 Visual Studio SDK 설치하는 방법
10824정성태7/7/201528433개발 환경 구성: 271. Team Foundation Server 2015 설치 방법 [1]
10823정성태7/7/201529277오류 유형: 300. SqlException (0x80131904): Unable to open the physical file
10822정성태7/7/201528122오류 유형: 299. The 'Visual C++ Project System Package' package did not load correctly.
10821정성태7/7/201521156오류 유형: 298. Unable to start debugging on the web server. IIS does not list a web site that matches the launched URL.
10820정성태7/7/201526839오류 유형: 297. HTTP Error 503. The service is unavailable. - 두 번째
10819정성태7/2/201530049오류 유형: 296. SQL Server Express 시작 오류 - error code 3417
10818정성태7/1/201529147오류 유형: 295. HTTP Error 503. The service is unavailable. [1]
10817정성태6/29/201533114.NET Framework: 523. C# 람다(Lambda)에서 변수 캡처 방식 [3]
10816정성태6/25/201528948.NET Framework: 522. 닷넷의 어셈블리 서명 데이터 확인 방법파일 다운로드1
10815정성태6/23/201527366Graphics: 1. 자네 나와 함께... UNITY 하지 않겠는가! [4]
10814정성태6/22/201525045.NET Framework: 521. Roslyn을 이용해 C# 문법 변형하기 (2) [5]
10813정성태6/21/201526203.NET Framework: 520. Roslyn을 이용해 C# 문법 변형하기 (1)
10812정성태6/20/201527116.NET Framework: 519. C# 6.0 오픈 소스 컴파일러 Roslyn - 빌드 및 테스트 방법 [1]
10811정성태6/20/201524212오류 유형: 294. OpenAuth 사용 시 System.Data.SqlClient.SqlException 예외가 Output 창에 출력되는 문제
10810정성태6/18/201523689개발 환경 구성: 270. Visual Studio에서 github 오픈 소스를 fork해서 테스트하는 방법 [1]
10809정성태6/18/201521323.NET Framework: 518. AllowPartiallyTrustedCallers 특성이 적용된 GAC 어셈블리에서 DynamicMethod의 calli 명령어 사용파일 다운로드1
10808정성태6/17/201523427.NET Framework: 517. calli IL 호출이 DllImport 호출보다 빠를까요? [1]파일 다운로드1
10807정성태6/16/201524884.NET Framework: 516. Microsoft.AspNet.Membership.OpenAuth 사용 시 "Local Database Runtime error occurred" 오류
10806정성태6/16/201542246.NET Framework: 515. OpenAuth.VerifyAuthentication 호출 시 The remote server returned an error: (400) Bad Request
10805정성태6/15/201524010Java: 17. 자바의 재미있는 상수 처리 방식
10804정성태6/10/201523997.NET Framework: 514. .NET CLR2 보안 모델에서의 APTCA 역할 (2)파일 다운로드1
10803정성태6/2/201525954.NET Framework: 513. UWP(Universal Windows Platform) 응용 프로그램의 새로운 라이브러리 버전 관리 해법 [2]
... 121  122  123  124  [125]  126  127  128  129  130  131  132  133  134  135  ...