if (i == 1)
System.Windows.Forms.PrintDialog printDialog = new System.Windows.Forms.PrintDialog();
if (printDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
// Document printing code goes here
// Print document using printer and page settings
ps = printDialog.PrinterSettings;
Status = “CANCEL”;
When I run the program in Visual Studio, I get the following error.
ko-KR_남성암 5종 v3_38_57244_결과지(수정).pdf (4.7 MB)
ko-KR_남성암 5종 v3_38_57248_결과지(수정).pdf (4.8 MB)
ko-KR_남성암 5종 v3_38_57309_결과지(수정).pdf (5.0 MB)
Spool.PNG (32.4 KB)
Managed Debugging Assistant ‘ContextSwitchDeadlock’ :
‘The CLR has been unable to transition from COM context 0xdfc5c0 to COM context 0xdfc678 for 60 seconds.
The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages.
This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time.
To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during
long running operations.’
TimeOut.PNG (26.4 KB)