Click here to Skip to main content
16,006,594 members
Home / Discussions / C#
   

C#

 
GeneralRe: BeginInvoke sloooooow Pin
Luc Pattyn28-Oct-07 5:22
sitebuilderLuc Pattyn28-Oct-07 5:22 
AnswerRe: BeginInvoke sloooooow Pin
TJoe27-Oct-07 13:41
TJoe27-Oct-07 13:41 
GeneralRe: BeginInvoke sloooooow Pin
mav.northwind27-Oct-07 20:31
mav.northwind27-Oct-07 20:31 
GeneralRe: BeginInvoke sloooooow Pin
TJoe28-Oct-07 4:40
TJoe28-Oct-07 4:40 
GeneralRe: BeginInvoke sloooooow Pin
TJoe28-Oct-07 5:13
TJoe28-Oct-07 5:13 
GeneralRe: BeginInvoke sloooooow Pin
mav.northwind29-Oct-07 20:02
mav.northwind29-Oct-07 20:02 
GeneralRe: BeginInvoke sloooooow Pin
TJoe30-Oct-07 2:08
TJoe30-Oct-07 2:08 
GeneralRe: BeginInvoke sloooooow Pin
mav.northwind2-Nov-07 10:01
mav.northwind2-Nov-07 10:01 
Hooray, at least I got a clue.
Today I got a chance to look at the machine in question and found out the reason for the delay. It was not machine-related, was not thread-pool related and could be reproduced on another machine.
The reason was/is the way the third-party app is calling our program.
They are calling ShellExecute() and then immediately enter a busy wait for 10 seconds waiting for a response file from us.
Once the timeout occurred, operation of the other app went back to normal (i.e. not cluttering the processor with busy waits) and our app finally got started.
Strangely enough, as soon as I lowered the third party app's priority, the call did come through and operation was almost normal.

I'll have to investigate further because I could then reproduce the effect with a little test application, but not if I called notepad instead of our app. Notepad opened reasonably fast. A hello world WinForms-app also took veeeery long to start up under these conditions.

But at least now I got something to work on...

Thanks for your suggestions!

Regards,
mav

--
Black holes are the places where God divided by 0...

QuestionGDI Exception Pin
DeepOceans27-Oct-07 1:16
DeepOceans27-Oct-07 1:16 
AnswerRe: GDI Exception Pin
Anthony Mushrow27-Oct-07 2:28
professionalAnthony Mushrow27-Oct-07 2:28 
AnswerRe: GDI Exception Pin
Luc Pattyn27-Oct-07 3:39
sitebuilderLuc Pattyn27-Oct-07 3:39 
GeneralRe: GDI Exception Pin
DeepOceans28-Oct-07 21:32
DeepOceans28-Oct-07 21:32 
GeneralRe: GDI Exception Pin
Luc Pattyn29-Oct-07 2:02
sitebuilderLuc Pattyn29-Oct-07 2:02 
GeneralRe: GDI Exception Pin
DeepOceans29-Oct-07 19:30
DeepOceans29-Oct-07 19:30 
QuestionHow to make POPUP window in C#.NET Pin
D i x y27-Oct-07 0:18
D i x y27-Oct-07 0:18 
AnswerRe: How to make POPUP window in C#.NET Pin
Arindam Tewary27-Oct-07 0:30
professionalArindam Tewary27-Oct-07 0:30 
AnswerRe: How to make POPUP window in C#.NET Pin
Abhijit Jana27-Oct-07 1:17
professionalAbhijit Jana27-Oct-07 1:17 
AnswerRe: How to make POPUP window in C#.NET Pin
mav.northwind27-Oct-07 1:24
mav.northwind27-Oct-07 1:24 
AnswerRe: How to make POPUP window in C#.NET Pin
Oshtri Deka27-Oct-07 8:46
professionalOshtri Deka27-Oct-07 8:46 
QuestionPOPUP Windows in C#.NET Pin
D i x y27-Oct-07 0:09
D i x y27-Oct-07 0:09 
AnswerRe: POPUP Windows in C#.NET Pin
Abhijit Jana27-Oct-07 1:23
professionalAbhijit Jana27-Oct-07 1:23 
AnswerRe: POPUP Windows in C#.NET Pin
Paul Conrad27-Oct-07 12:18
professionalPaul Conrad27-Oct-07 12:18 
Questiongridview Pin
Sunil Wise26-Oct-07 23:18
professionalSunil Wise26-Oct-07 23:18 
AnswerRe: gridview Pin
Arindam Tewary26-Oct-07 23:48
professionalArindam Tewary26-Oct-07 23:48 
GeneralRe: gridview Pin
Sunil Wise27-Oct-07 1:14
professionalSunil Wise27-Oct-07 1:14 

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.