Click here to Skip to main content
15,891,184 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
If the loop is in your program, then it should be in a backgroundworker on its own thread. If the loop is inside the COM-component, you can't change much.

Application.DoEvents is a crutch for people doing too much on the UI-thread.


--edit
Go to the menu "Debug / Exceptions", find "Managed Debugging Assistants", uncheck ContextSwitchDeadlock.

And sometimes, the message is even bogus[^].
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: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 
QuestionInstallation of Visual Basic 6.0 on Windows 10 Pin
Member 140755163-Dec-18 0:13
Member 140755163-Dec-18 0:13 
AnswerRe: Installation of Visual Basic 6.0 on Windows 10 Pin
Mycroft Holmes3-Dec-18 14:04
professionalMycroft Holmes3-Dec-18 14:04 

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.