문제 설명
파스칼스크립트 디버깅 중에 양식 양식을 일시 중단할 수 있습니까? (Can a forms modality be suspended during pascalscript debugging?)
응용 프로그램에 파스칼 스크립팅 IDE를 포함하고 버튼이 있는 모달 양식을 생성하는 스크립트가 생성되고 버튼 onclick 이벤트에서 디버거 중단점을 배치한다고 가정합니다.
결과 , 해당 버튼을 누르면 작업 관리자만 종료할 수 있는 교착 상태의 프로그램이 됩니다.
분명히 그렇게 하고 싶지는 않지만 최종 사용자가 수행하는 작업을 제어하기 어려울 것입니다.
p>pascalscript 디버거 중단점에 도달했을 때 연결된 모달 형식을 일시 중단하는 방법이 있는지 궁금합니다.
참조 솔루션
방법 1:
You cannot suspend window modality. It's not a flag.
Modal window runs its own message pump. Which is many levels up in a call stack from the event handler. You cannot change call stack.
(by Andy k、Martin Prikryl)