Click here to Skip to main content
15,902,189 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: application path Pin
RaviRanjanKr15-Dec-10 5:25
professionalRaviRanjanKr15-Dec-10 5:25 
QuestionHow does Application.DoEvents work? Pin
MicroVirus7-Sep-10 2:44
MicroVirus7-Sep-10 2:44 
AnswerRe: How does Application.DoEvents work? Pin
Luc Pattyn7-Sep-10 3:17
sitebuilderLuc Pattyn7-Sep-10 3:17 
GeneralRe: How does Application.DoEvents work? Pin
MicroVirus7-Sep-10 9:25
MicroVirus7-Sep-10 9:25 
AnswerRe: How does Application.DoEvents work? Pin
Johann Gerell8-Sep-10 2:41
Johann Gerell8-Sep-10 2:41 
GeneralRe: How does Application.DoEvents work? Pin
Luc Pattyn8-Sep-10 2:45
sitebuilderLuc Pattyn8-Sep-10 2:45 
GeneralRe: How does Application.DoEvents work? Pin
Spectre_0018-Sep-10 4:18
Spectre_0018-Sep-10 4:18 
GeneralRe: How does Application.DoEvents work? Pin
Luc Pattyn8-Sep-10 4:30
sitebuilderLuc Pattyn8-Sep-10 4:30 
Spectre_001 wrote:
Windows under the hood is still basicaly a non-preemptive multitasking OS


I don't agree. The Windows kernel is event driven, is priority based, is pre-emptive, has fairness implemented, and contains some protection against CPU monopolizing processes. There is no need to call DoEvents(), or anything else, at all to get things to work properly. Here is a simple test: create a process that contains a long computation and have it optionally generate output while computing; now run a number of instances and watch how each of them is proceeding.

Windows is not a real-time OS, which means it is not guaranteeing much on latency; however it does not need the user's cooperation to provide a good interactive user experience. There are ways to make an app behave badly, one of them would be to execute long or blocking stuff on a WinApp's main thread; and there are ways to make an app fail, one of them is calling Application.DoEvents() causing code to get re-entered while it wasn't designed for re-entrance to start with.

BTW: none of the misbehavior mentioned (block GUI thread, call DoEvents) would negatively affect other processes.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


AnswerRe: How does Application.DoEvents work? Pin
Guy Harwood8-Sep-10 2:05
Guy Harwood8-Sep-10 2:05 
GeneralRe: How does Application.DoEvents work? Pin
Mike Devenney8-Sep-10 2:49
Mike Devenney8-Sep-10 2:49 
AnswerRe: How does Application.DoEvents work? Pin
Patrick Fox8-Sep-10 5:41
Patrick Fox8-Sep-10 5:41 
AnswerRe: How does Application.DoEvents work? Pin
Fabio Franco8-Sep-10 6:15
professionalFabio Franco8-Sep-10 6:15 
GeneralRe: How does Application.DoEvents work? [modified] Pin
the Kris8-Sep-10 8:29
the Kris8-Sep-10 8:29 
GeneralRe: How does Application.DoEvents work? Pin
Fabio Franco8-Sep-10 8:38
professionalFabio Franco8-Sep-10 8:38 
AnswerRe: How does Application.DoEvents work? Pin
englebart8-Sep-10 8:46
professionalenglebart8-Sep-10 8:46 
AnswerRe: How does Application.DoEvents work? Pin
Scott Barbour8-Sep-10 10:08
Scott Barbour8-Sep-10 10:08 
GeneralRe: How does Application.DoEvents work? Pin
MicroVirus10-Sep-10 12:41
MicroVirus10-Sep-10 12:41 
QuestionCalendarExtender popup appearing when Enter key is pressed Pin
dev_asp_shreshtha6-Sep-10 1:09
dev_asp_shreshtha6-Sep-10 1:09 
AnswerRe: CalendarExtender popup appearing when Enter key is pressed Pin
Pete O'Hanlon6-Sep-10 1:30
mvePete O'Hanlon6-Sep-10 1:30 
QuestionNot able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
Aseem Sharma5-Sep-10 6:43
Aseem Sharma5-Sep-10 6:43 
AnswerCross post/re-post Pin
Not Active5-Sep-10 7:14
mentorNot Active5-Sep-10 7:14 
QuestionLoad image problem Pin
Mehdi Ghiasi3-Sep-10 5:05
Mehdi Ghiasi3-Sep-10 5:05 
AnswerRe: Load image problem Pin
Dave Kreskowiak3-Sep-10 6:29
mveDave Kreskowiak3-Sep-10 6:29 
AnswerRe: Load image problem Pin
Luc Pattyn3-Sep-10 6:48
sitebuilderLuc Pattyn3-Sep-10 6:48 
QuestionRe: Load image problem [modified] Pin
Mehdi Ghiasi3-Sep-10 15:09
Mehdi Ghiasi3-Sep-10 15:09 

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.