Click here to Skip to main content
15,905,427 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionError ContextSwitchDeadlock Pin
desanti4-Dec-18 5:33
desanti4-Dec-18 5:33 
AnswerRe: Error ContextSwitchDeadlock Pin
Eddy Vluggen4-Dec-18 6:33
professionalEddy Vluggen4-Dec-18 6:33 
GeneralRe: Error ContextSwitchDeadlock Pin
desanti4-Dec-18 8:45
desanti4-Dec-18 8:45 
GeneralRe: Error ContextSwitchDeadlock Pin
Eddy Vluggen4-Dec-18 9:37
professionalEddy Vluggen4-Dec-18 9:37 
GeneralRe: Error ContextSwitchDeadlock Pin
desanti5-Dec-18 1:18
desanti5-Dec-18 1:18 
GeneralRe: Error ContextSwitchDeadlock Pin
Eddy Vluggen5-Dec-18 1:43
professionalEddy Vluggen5-Dec-18 1:43 
GeneralRe: Error ContextSwitchDeadlock Pin
desanti5-Dec-18 2:08
desanti5-Dec-18 2:08 
GeneralRe: Error ContextSwitchDeadlock Pin
Eddy Vluggen5-Dec-18 2:37
professionalEddy Vluggen5-Dec-18 2:37 
desanti wrote:
also I've read that I can do some configuration to ignore the message.
but the problem is , what about when I finish my program and install it to client pc ?
You can; the IDE only breaks on exceptions that you want it to. What happens without the IDE can easily be tested by running your app outside of it. Then you'll know what happens on the client-PC.

desanti wrote:
I've read also that I can use application.doevents.
No, you can't.

desanti wrote:
But executing this on every step of the loop cause the program to slow down.
It is a loop inside a COM-component. Do you have the source to that control?

desanti wrote:
Is there way to call this only when necessary so windows can detect that my application is alive ?
You application IS alive (and answering messages), but the COM-component that you're using is not. If you know WHY it is not answering messages, then it is not a problem. You simply wait for it to be done and hope it is not in an endless loop.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

GeneralRe: Error ContextSwitchDeadlock Pin
desanti5-Dec-18 2:49
desanti5-Dec-18 2:49 
GeneralRe: Error ContextSwitchDeadlock Pin
Eddy Vluggen5-Dec-18 2:52
professionalEddy Vluggen5-Dec-18 2:52 
GeneralRe: Error ContextSwitchDeadlock Pin
desanti5-Dec-18 2:59
desanti5-Dec-18 2:59 
GeneralRe: Error ContextSwitchDeadlock Pin
Eddy Vluggen5-Dec-18 3:01
professionalEddy Vluggen5-Dec-18 3:01 
GeneralRe: Error ContextSwitchDeadlock Pin
desanti5-Dec-18 3:05
desanti5-Dec-18 3:05 
GeneralRe: Error ContextSwitchDeadlock Pin
Eddy Vluggen5-Dec-18 3:09
professionalEddy Vluggen5-Dec-18 3:09 
GeneralRe: Error ContextSwitchDeadlock Pin
desanti5-Dec-18 3:14
desanti5-Dec-18 3:14 
GeneralRe: Error ContextSwitchDeadlock Pin
Eddy Vluggen5-Dec-18 3:19
professionalEddy Vluggen5-Dec-18 3:19 
GeneralRe: Error ContextSwitchDeadlock Pin
desanti5-Dec-18 3:21
desanti5-Dec-18 3:21 
GeneralRe: Error ContextSwitchDeadlock Pin
Eddy Vluggen5-Dec-18 3:22
professionalEddy Vluggen5-Dec-18 3:22 
GeneralRe: Error ContextSwitchDeadlock Pin
desanti5-Dec-18 3:24
desanti5-Dec-18 3:24 
GeneralRe: Error ContextSwitchDeadlock Pin
Eddy Vluggen5-Dec-18 3:30
professionalEddy Vluggen5-Dec-18 3:30 
GeneralRe: Error ContextSwitchDeadlock Pin
desanti5-Dec-18 3:40
desanti5-Dec-18 3:40 
GeneralRe: Error ContextSwitchDeadlock Pin
Eddy Vluggen5-Dec-18 3:43
professionalEddy Vluggen5-Dec-18 3:43 
GeneralRe: Error ContextSwitchDeadlock Pin
Dave Kreskowiak5-Dec-18 5:58
mveDave Kreskowiak5-Dec-18 5:58 
GeneralRe: Error ContextSwitchDeadlock Pin
Dave Kreskowiak5-Dec-18 5:56
mveDave Kreskowiak5-Dec-18 5:56 
GeneralRe: Error ContextSwitchDeadlock Pin
Dave Kreskowiak5-Dec-18 5:55
mveDave Kreskowiak5-Dec-18 5:55 

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.