Click here to Skip to main content
15,913,773 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to detect windowstate outside form? [modified] Pin
Luc Pattyn18-Jan-09 23:05
sitebuilderLuc Pattyn18-Jan-09 23:05 
AnswerRe: how to detect windowstate outside form? Pin
Giorgi Dalakishvili19-Jan-09 0:38
mentorGiorgi Dalakishvili19-Jan-09 0:38 
Questionsystem hang debug Pin
George_George18-Jan-09 19:59
George_George18-Jan-09 19:59 
AnswerRe: system hang debug Pin
N a v a n e e t h18-Jan-09 20:34
N a v a n e e t h18-Jan-09 20:34 
GeneralRe: system hang debug Pin
George_George18-Jan-09 20:50
George_George18-Jan-09 20:50 
GeneralRe: system hang debug Pin
N a v a n e e t h18-Jan-09 20:55
N a v a n e e t h18-Jan-09 20:55 
GeneralRe: system hang debug Pin
George_George19-Jan-09 1:26
George_George19-Jan-09 1:26 
AnswerRe: system hang debug Pin
Luc Pattyn18-Jan-09 21:21
sitebuilderLuc Pattyn18-Jan-09 21:21 
Hi George,

1.
if only one app hangs, you shouldn't call it a system hang. You are not going to reboot are you?

2.
if the problem occurs consistently you might just perform normal debugging. if on the other hand the
hang is occasional, I would add tracing code, so the app reports its activities to a file, one line at a time, with the time prefixed. In fact I always do that, from the very beginning, long before it starts to go wrong; and I tend to use File.AppendText so the file is normally closed and can be read while the app is running.

Without trace logs, intermittent or occasional problems are hard to debug, while single-stepping and breakpointing, you are never sure the problem will occur...
With trace logs, you can focus on a bad run; or you can compare traces from a bad run with those from a good run.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

I use ListBoxes for line-oriented text output (not TextBoxes), and PictureBoxes for pictures (not drawings).


GeneralRe: system hang debug Pin
N a v a n e e t h18-Jan-09 21:26
N a v a n e e t h18-Jan-09 21:26 
GeneralRe: system hang debug Pin
George_George19-Jan-09 1:27
George_George19-Jan-09 1:27 
GeneralRe: system hang debug Pin
George_George19-Jan-09 1:28
George_George19-Jan-09 1:28 
AnswerRe: system hang debug [modified] Pin
Luc Pattyn19-Jan-09 1:53
sitebuilderLuc Pattyn19-Jan-09 1:53 
GeneralRe: system hang debug Pin
George_George19-Jan-09 2:05
George_George19-Jan-09 2:05 
AnswerRe: system hang debug Pin
Luc Pattyn19-Jan-09 2:14
sitebuilderLuc Pattyn19-Jan-09 2:14 
GeneralRe: system hang debug Pin
George_George19-Jan-09 2:27
George_George19-Jan-09 2:27 
AnswerRe: system hang debug [modified] Pin
Luc Pattyn19-Jan-09 2:41
sitebuilderLuc Pattyn19-Jan-09 2:41 
GeneralRe: system hang debug Pin
George_George19-Jan-09 2:47
George_George19-Jan-09 2:47 
AnswerRe: system hang debug [modified] Pin
Luc Pattyn19-Jan-09 2:53
sitebuilderLuc Pattyn19-Jan-09 2:53 
GeneralRe: system hang debug Pin
George_George19-Jan-09 2:56
George_George19-Jan-09 2:56 
AnswerRe: system hang debug [modified] Pin
Luc Pattyn19-Jan-09 3:18
sitebuilderLuc Pattyn19-Jan-09 3:18 
GeneralRe: system hang debug Pin
George_George19-Jan-09 19:20
George_George19-Jan-09 19:20 
AnswerRe: system hang debug [modified] Pin
Luc Pattyn19-Jan-09 21:24
sitebuilderLuc Pattyn19-Jan-09 21:24 
QuestionHow to use design pattern for calling multiple assemblies Pin
mpavas18-Jan-09 19:12
mpavas18-Jan-09 19:12 
AnswerRe: How to use design pattern for calling multiple assemblies Pin
N a v a n e e t h18-Jan-09 19:51
N a v a n e e t h18-Jan-09 19:51 
GeneralRe: How to use design pattern for calling multiple assemblies Pin
mpavas18-Jan-09 23:04
mpavas18-Jan-09 23: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.