본문 바로가기

2017/09

(90)
System.Runtime.InteropServices.SEHException - 0x80004005 [출처] System.Runtime.InteropServices.SEHException - 0x80004005|작성자 techshare SEHException은 "unmanaged code" 영역에서 발생한 것으로 .NET 예외에는 매핑이 되지 않아 필요한 문맥 정보가 그다지 많지 않습니다. (여러 가지 발생 상황이 있겠지만) 간단한 예로 다음의 코드로 재현하는 것이 가능합니다. using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Threading; namespace ConsoleApp1 { class Program { [DllImport("kernel32.dll", SetLastError = ..
비주얼 스튜디오에서 일부 텍스트 파일을 무조건 메모장으로만 여는 문제 [출처] 비주얼 스튜디오에서 일부 텍스트 파일을 무조건 메모장으로만 여는 문제|작성자 techshare 재미있군요. ^^ 첨부된 파일(invalid_char.txt)에 포함된 문자를 포함하는 경우, .txt 파일을 Visual Studio에서 열려고 하면 무조건 notepad.exe가 실행되고 그 안에서 문서가 열리게 됩니다. 검색해 보니 관련 글들이 있군요. ^^ Visual studio file opens only with notepad ; https://stackoverflow.com/questions/7972893/visual-studio-file-opens-only-with-notepad 따라서 해당 텍스트 파일을 비주얼 스튜디오에서 열고 싶다면 명시적으로 BOM을 붙여 UTF-8, Unicod..
SQL Server Express 연결 오류 - A network-related or instance-specific error occurred while establishing a connection to SQL Server. [출처] SQL Server Express 연결 오류 - A network-related or instance-specific error occurred while establishing a connection to SQL Server.|작성자 techshare 희한한 일이군요. SQL Server Express에 접근하는 데 SqlConnection의 경우 다음과 같은 예외가 발생합니다. Unhandled Exception: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not f..
System.Diagnostics.Process 객체의 명시적인 해제 권장 [출처] System.Diagnostics.Process 객체의 명시적인 해제 권장|작성자 techshare 지난번 글에서, System.Runtime.InteropServices.SEHException - 0x80004005 ; http://www.sysnet.pe.kr/2/0/11307 Process 객체를 사용하고 일부러 CloseHandle을 통해 핸들을 닫으면 GC 상황에서 SEHException 예외가 발생한다는 것을 설명했습니다. 이를 달리 말하면, Process 객체는 GC로 인해 수행되는 Finalizer가 있다는 것이고 그 안에는 핸들을 닫는 코드가 있음을 짐작케 합니다. 실제로 Process 객체는 Component를 통해 IDisposable 인터페이스와 Finalizer를 제공받고..
c# 랜덤하게 숫자 생성 Random rnd = new Random(); int month = rnd.Next(1, 13);
WebBrowser Control에서 스크립트 에러 무시하기 webBrowser.ScriptErrorsSuppressed = true;
ionic2 지정하신 파일을 찾을 수 없습니다. ionic build android 할때 오류가 '지정하신 파일을 찾을 수 없습니다.' 라는 오류가 발생할떄 cordova platform add android@~5 이렇게 다운그레이드 해서 해보자
checkbox 에서 클릭시 ngModel 안바뀜 위의 경우 정상적으로 작동한다 허나 만약 event를 click으로 주게 되면 되지 않는데()