Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Thread and Not Responding Pin
Heath Stewart30-Dec-04 5:17
protectorHeath Stewart30-Dec-04 5:17 
GeneralRe: Thread and Not Responding Pin
Heath Stewart29-Dec-04 11:06
protectorHeath Stewart29-Dec-04 11:06 
GeneralRe: Thread and Not Responding Pin
PaleyX1-Apr-05 2:50
PaleyX1-Apr-05 2:50 
GeneralRe: Thread and Not Responding Pin
Heath Stewart1-Apr-05 7:03
protectorHeath Stewart1-Apr-05 7:03 
GeneralRe: Thread and Not Responding Pin
PaleyX1-Apr-05 7:17
PaleyX1-Apr-05 7:17 
GeneralRe: Thread and Not Responding Pin
Heath Stewart2-Apr-05 1:25
protectorHeath Stewart2-Apr-05 1:25 
GeneralRe: Thread and Not Responding Pin
PaleyX2-Apr-05 1:53
PaleyX2-Apr-05 1:53 
GeneralRe: Thread and Not Responding Pin
Heath Stewart3-Apr-05 6:41
protectorHeath Stewart3-Apr-05 6:41 
In your previous post you made it sounds like there was also an event that fired intermitently while the long process was running. Is that true? If so, do you set the wait cursor at all in that loop?

When you profiled your application, no Application.DoEvents ran at all while processing the crosstab? From the code above I don't see a problem. It would seem another thread is either setting the cursor or dispatching queued messages (in the application pump). Since you're running asynchronously, this is entirely possible and most likely the case.

Try running this synchronously and you should find that it works because the application (or dialog) message pump is run (which Application.DoEvents forces). If that does work, I'm really not sure what to do to work around it, since this is expected behavior.

One thing you could try is setting a Control's Cursor property instead of the application's. Hopefully that will "stick".

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Thread and Not Responding Pin
PaleyX4-Apr-05 5:37
PaleyX4-Apr-05 5:37 
GeneralRe: Thread and Not Responding Pin
Heath Stewart4-Apr-05 8:23
protectorHeath Stewart4-Apr-05 8:23 
GeneralRe: Thread and Not Responding Pin
Ashar Khaliq29-Dec-04 11:17
Ashar Khaliq29-Dec-04 11:17 
GeneralRe: Thread and Not Responding Pin
brunoconde30-Dec-04 2:47
brunoconde30-Dec-04 2:47 
GeneralRe: Thread and Not Responding Pin
Heath Stewart30-Dec-04 5:14
protectorHeath Stewart30-Dec-04 5:14 
GeneralTAPI Programming in C# Pin
SyedMazharAli29-Dec-04 9:27
SyedMazharAli29-Dec-04 9:27 
GeneralRe: TAPI Programming in C# Pin
Michael P Butler29-Dec-04 10:10
Michael P Butler29-Dec-04 10:10 
GeneralRe: TAPI Programming in C# Pin
Ray Cassick29-Dec-04 10:14
Ray Cassick29-Dec-04 10:14 
GeneralRe: TAPI Programming in C# Pin
Ray Cassick29-Dec-04 10:11
Ray Cassick29-Dec-04 10:11 
GeneralRe: TAPI Programming in C# Pin
SyedMazharAli29-Dec-04 10:38
SyedMazharAli29-Dec-04 10:38 
GeneralMany to many relationships Pin
wlowerycolumbus29-Dec-04 7:03
professionalwlowerycolumbus29-Dec-04 7:03 
GeneralRe: Many to many relationships Pin
Javier Lozano29-Dec-04 7:20
Javier Lozano29-Dec-04 7:20 
GeneralRegex Question Pin
Paul Lyons29-Dec-04 6:58
Paul Lyons29-Dec-04 6:58 
GeneralRe: Regex Question Pin
Nick Parker29-Dec-04 7:09
protectorNick Parker29-Dec-04 7:09 
GeneralRe: Regex Question Pin
Charlie Williams29-Dec-04 7:46
Charlie Williams29-Dec-04 7:46 
GeneralRe: Regex Question Pin
Paul Lyons29-Dec-04 8:55
Paul Lyons29-Dec-04 8:55 
GeneralRe: Regex Question Pin
Heath Stewart29-Dec-04 9:01
protectorHeath Stewart29-Dec-04 9:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.