-
[DX_WPF] DXDynamicModuleDevExpress/DX_WPF 2024. 10. 14. 09:29
-- # 프로젝트 dll 간헐적으로 로드 되지 않는 현상 (app, etc ) 간헐적으로 dll 동적 로드가 안됨. 유독 특정 dll들( app, etc)debug모드보다 debug없이 실행 할 때 유독 심하게 발생. 잘 될때는 계속 잘 돼기도 하고그러다 한번씩 안 돼기도 하고반복적으로 됐다 안돼기도하고불규칙적. com 을 쓰는경우 관련 프로젝트 (Apps) 등 정적으로 모듈이 로드(시정 상이)되는 것으로 추정. 특정 폴더의 .dll 을 정적 참조 리스트에 있어도 전부 로드하는것으로 DXDynamicModule.dll 코드 수정. (로드 하면 아래 메소드 실행하게 됨.)
-
[WPF] Call Async MethodC#/WPF 2024. 10. 4. 11:09
await 하려는 함수는 async 여야 함.await 쓰는 함수는 async 여야 함. private async Task SendOfflineException() { await SendOfflineExceptionsIfOnline(); } private static async Task SendOfflineExceptionsIfOnline() { } async 함수 호출. Task.Run(SendOfflineExceptionsIfOnline); https://stackoverflow.com/questions/59015854/what-is-the-best-patter-to-call-async-methods-after-app-start-fireforget-in-c What ..
-
[C#] ExceptionC#/기초 2024. 9. 25. 10:57
https://learn.microsoft.com/ko-kr/dotnet/standard/exceptions/how-to-explicitly-throw-exceptions 방법: 명시적으로 예외 Throw - .NETC# throw 문이나 Visual Basic Throw 문을 사용하여 .NET에서 명시적으로 예외를 throw하는 방법을 알아봅니다.learn.microsoft.com https://learn.microsoft.com/ko-kr/dotnet/standard/exceptions/how-to-create-user-defined-exceptions 방법: 사용자 정의 예외 만들기 - .NET.NET의 Exception 기본 클래스에서 파생된 예외 클래스의 계층 구조의 대안인 사용자 정의 예외를 ..
-
[MFC] DDX_Control()C++/MFC 2024. 8. 28. 10:26
리소스 에디터에서 새로운 대화 상자를 만들고 그 안에 리스트 상자, 콤보 상자, 에디터 상자 등 기타 버튼들을 만들었으면 이 자원들이 어떤 변수와 연결되는 하나를 지정해 주어야 합니다. 이것을 지정해 주는 항목이 바로 DoDataExchange입니다. 방법은 DoDataExchange라는 함수 안에 DDX_ 계열의 함수를 사용해 링크시키면 됩니다. 그럼 CDlgTestDlg.h 헤더 파일에 일단 CListBox 클래스형인 변수를 만듭니다. CListBox m_listBox; // CDlgTestDlg.h 안에 선언 우리가 만든 리소스에는 리스트 상자가 있지요. ID를 IDC_LIST1으로 했습니다. 그럼 이 리스트 상자를 컨트롤할 수 있는 애인을 하나 만들어야 합니다. 리스트 상자의 일반 ..
-
[WPF] Sentry.ioC#/WPF 2024. 8. 22. 15:11
누겟 설치 app.cs StartUp 이벤트 보내는 주소 options.Debug 디폴트값 false; 예외 사용 이슈 로그 https://docs.sentry.io/platforms/dotnet/guides/wpf/ WPF | Sentry for WpfLearn more about how Sentry's .NET SDK works with Windows Presentation Foundation (WPF) applications.docs.sentry.io try catch 처리가 안된 UnhandledException 이벤트 발생한 경우 CaptureException 호출.오프라인 Exception Report 있을 시 SendOfflineExceptionsIfOnline 에서 ..
-
[C#] in,out, ref keywordC#/기초 2024. 8. 12. 11:06
https://learn.microsoft.com/ko-kr/dotnet/csharp/language-reference/keywords/out out 키워드 - C# referenceout 키워드 - C# 참조learn.microsoft.com https://programing-note.tistory.com/entry/C-RefOut-%ED%82%A4%EC%9B%8C%EB%93%9C-%EC%99%80-in-%ED%82%A4%EC%9B%8C%EB%93%9C C# Ref,Out 키워드 와 in 키워드Ref 키워드와 Out 키워드를 더 잘 이해하기 위해서는 call by refurence , call by value를 알고 보는 게 좋다. Ref , Out 키워드 정의부터 설명하자면 Ref Pa..