RE: Invoke (and other actions on a ListView) are hanging



Hi Roy,

Thanks for your post.

Based on my understanding, you have met the hang problem on the
Control.Invoke calling.

For this issue, I think there are some things to look at:
1) Confirm all the controls are actually created on the UI thread. Make
sure someone isn't inadvertantly calling InvokeRequired prior to handle
creation, when it will always return false, then calling another method
which causes handle creation on the wrong thread. This is particularly
problematic if the creating thread then exits. We've seen hangs from this
before
2) Are they doing something on the Main thread that's causing a block,
thereby stopping hte message pump and looking like a deadlock?

Also, do you use multi-processor in your system? There is a known issue
related with Control.Invoke in .Net Framework1.1 of hang, please refer to:
"Bug Details: Control.Invoke hangs"
http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackid=5
3c5a200-e51b-47a0-9e71-34ccf6cbbf13

The hotfix for this issue is documented in the KB below:
"FIX: A Windows Forms-based application may stop responding when you make a
call to the Control.Invoke method in the .NET Framework 1.1 SP1"
http://support.microsoft.com/?kbid=896665

At last, without caring for the root cause, I think using
Control.BeginInvoke to replace Control.Invoke should resolve your issue.
You may give it a try.

Hope this helps
============================================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

.



Relevant Pages

  • Re: Instantiating DCOM components during reboot
    ... Brian, the 6 minutes timeout is for detecting server death. ... calling CoCreateInstanceEx of course, but not indefinitely. ... not hang. ...
    (microsoft.public.win32.programmer.ole)
  • Re: I Have a Question
    ... > would venture to say that over half of the posts and nearly all of the ... > instead of wasting time being more creative in your name calling. ... want to hang around here. ...
    (rec.music.classical.recordings)
  • Re: HP OpenVMS Tele-Marketing?!?
    ... them for relevant facts like what they're calling about and for whom ... you just hang up ... I also like Phillip's whistle response, but if they're calling with a ...
    (comp.os.vms)
  • Re: diode curve
    ... ask them for their home phone number, ... They typically get nervous and hang up on me. ... if you check the relevant authority then you will ... >> offence by calling this number and offering unsolicited services" ...
    (sci.electronics.design)
  • Re: System Hang...problem is HDD or OS.
    ... what can i do my pc have a hang problem. ... a Linux LiveCD. ... You can even get a copy of Prime95 that runs under Linux, ...
    (microsoft.public.windowsxp.hardware)

Quantcast