Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

ipethick

Posts

1

Joined

Thu May 16, 2013 8:41 pm

ContextSwitchDeadlock while downloading

by ipethick » Tue Sep 24, 2013 9:17 pm

I am getting the following error when downloading a 20Mb+ file from an FTP site.

"ContextSwitchDeadlock was detected
Message: The CLR has been unable to transition from COM context 0x1bec76d0 to COM context 0x1bec7920 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."


Seems to be around keeping windows alive while downloading.

Thanks in advance for any assistance.
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: ContextSwitchDeadlock while downloading

by support2 » Wed Sep 25, 2013 9:21 am

You'll need to give us more details on what you are doing ... some sample code?

Who is online

Users browsing this forum: No registered users and 25 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron