Microsoft MVP성태의 닷넷 이야기
이벤트 뷰어 .NET Runtime 오류 [링크 복사], [링크+제목 복사],
조회: 8348
글쓴 사람
saki
홈페이지
첨부 파일
 


안녕하세요 c# winform으로 작업하고 있습니다.
제가 만든 소프트웨어를 끌때 가끔 켜지지가 않을때가 있습니다.
이벤트뷰어에서 찾아보니 아래와 같이 오류가 나있더군요.
며칠째 해결책을 찾으려하지만 찾을수 없어서 질문 보냅니다.
감사합니다.

응용 프로그램: ***.exe Framework 버전: v4.0.30319 설명: 처리되지 않은 예외로 인해 프로세스가 종료되었습니다. 예외 정보:System.InvalidOperationException 위치: System.Windows.Forms.Control.MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean) 위치: System.Windows.Forms.Control.BeginInvoke(System.Delegate, System.Object[]) 위치: System.Windows.Forms.WindowsFormsSynchronizationContext.Post(System.Threading.SendOrPostCallback, System.Object) 위치: Infragistics.Win.AnimatedImageManager+AnimatedImageThreadSynchronizer.OnFrameChanged(System.Object, System.EventArgs) 위치: System.Drawing.ImageAnimator+ImageInfo.OnFrameChanged(System.EventArgs) 위치: System.Drawing.ImageAnimator+ImageInfo.set_Frame(Int32) 위치: System.Drawing.ImageAnimator.AnimateImages50ms() 위치: System.Threading.ThreadHelper.ThreadStart_Context(System.Object) 위치: System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) 위치: System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) 위치: System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) 위치: System.Threading.ThreadHelper.ThreadStart()








[최초 등록일: ]
[최종 수정일: 5/21/2020]


비밀번호

댓글 작성자
 



2020-05-21 04시13분
"소프트웨어를 끌때 가끔 켜지지가 않을때" 라는 것을 다시 한번 풀어서 설명해 주세요.

오류 로그의 경우, 아마도 UI 스레드가 아닌 2차 스레드에서 예외가 발생한 것 같은데 그런 경우는 비정상 종료하는 것이 맞습니다. 아래의 글을 참고하세요.

ASP.NET 응용 프로그램이 예외로 프로세스가 종료된다면?
; https://www.sysnet.pe.kr/2/0/10863
정성태
2020-05-22 10시12분
[saki] 답변 감사합니다.

종료 시킬때 위와 같은 에러가 뜨면서 종료가 되며
cmd에서 tasklist 를 치면 제가 종료시킨게 아직 살아있는게 확인이 됩니다.
작업관리자에서는 종료가 된 상태여서 실행이 되지 않습니다.
[guest]
2020-05-22 10시23분
그럼 윈폼을 닫았는데 종료가 안 되었다고 해야겠죠. 그런 경우라면 아마도 Foreground thread가 살아 있기 때문일 것입니다. 응용 프로그램에서 생성하는 스레드 중에 IsBackground 속성이 true가 아닌 것들이 있고 자발적 종료를 하지 않아서 그런 현상이 발생할 수 있습니다. 기본값이 false이기 때문에 "new Thread"로 생성한 스레드가 있다면 해당 속성을 true로 해보세요.

아래의 글을 읽어보면 도움이 될 것입니다.

Foreground Thread / Background Thread
; https://www.sysnet.pe.kr/2/0/513

하지만, 위와 같이 했다고 해서 이벤트 로그에 남는 그 문제가 사라지지는 않을 것입니다. 어쨌든 예외가 나는 것과 Background 스레드로 변경해 응용 프로그램이 종료하는 것과는 별개의 문제입니다.
정성태

... 61  62  63  [64]  65  66  67  68  69  70  71  72  73  74  75  ...
NoWriterDateCnt.TitleFile(s)
976박성준6/13/201112994VS2008 Add-in 구현 관련 질문 [4]
972김길6/6/201115030메모리 해제 예외 처리 관련.. [2]
971강동원5/29/201112733firebird install건 [1]
970임동찬5/18/201113461ASP.net 솔루션 디버깅 관련 [1]
969이성환5/4/201115370WMI 를 사용하지 않고 하드웨어 정보를 가져올 수 없을까요? [3]
968김동미4/28/201114641안녕하세요 다시 한번 문의를 드립니다.. [2]파일 다운로드1
967임동찬4/22/201117089C# using문 관련 [9]
964김동미4/18/201114833wcf IsOneWay 속성관련 문의 입니다..
965정성태4/18/201115900    답변글 [답변]: wcf IsOneWay 속성관련 문의 입니다..
966김동미4/19/201114203        답변글 [답변]: [답변]: wcf IsOneWay 속성관련 문의 입니다.. [1]
963최재훈4/12/201112477wcf inactivityTimeout 설정시 문의 사항이 있습니다. [2]
962임동찬4/8/201112209TFS 사용관련 [1]
961임동찬4/7/201112534XSD & XML & XmlCodeGenerator [2]
960임동찬4/5/201113800XML Schema Editor [4]
959immm3/24/201111830로그인 연동 어려운 건가요? [1]
958꼭지3/3/201113483Supporting compressed request in WCF 3.5 [5]
957임동찬2/21/201113907WCF channel faulted 관련 [2]
956윤용한2/18/201117274WaitHandle.WaitOne 과 Stopwatch에 관한 질문 [3]
955최광욱2/17/201114461TFS 에서 소스 영구 제거 방법 [1]
954한장우2/16/201112084atl activeX 질문이요~ [1]
952박용운2/16/201113022IE8.0에서 BHO [1]
953박용운2/16/201113137    답변글 [답변]: IE8.0에서 BHO
951임동찬2/11/201112989WCF Service Reference [1]
950이성환2/9/201114274Windows application 프로젝트를 참조 했을 때 생성되는 실행파일을 직접 실행 불가능하도록 하고 싶습니다. [6]파일 다운로드1
947김순조1/24/201114291.NET based Com에서 Native ActiveX로 이벤트 보내기?? [2]파일 다운로드1
943김기룡1/3/201117342닷넷 에러시 조치사항관련... [2]
... 61  62  63  [64]  65  66  67  68  69  70  71  72  73  74  75  ...