Programming/C#

Why the cross-threading exception raises only when debugging?

역시인생한방 2016. 6. 22. 12:43

Windows Forms Application 개발시 Debug 모드일때만


Cross-thread operation not valid: ??? Control accessed from a thread other than the thread it was created on.


이라는 예외가 발생한다면


CheckForIllegalCrossThreadCalls = false;


를 추가하면 당장은 괜찮아진다 (임시방편)


출처 : http://stackoverflow.com/questions/18762673/why-the-cross-threading-exception-raises-only-when-debugging

참조 : http://egloos.zum.com/goodhelper/v/2426824