Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: Program crashes when form is refreshed Pin
Member 1274878324-Oct-17 16:20
Member 1274878324-Oct-17 16:20 
AnswerRe: Program crashes when form is refreshed Pin
Eddy Vluggen24-Oct-17 13:33
professionalEddy Vluggen24-Oct-17 13:33 
GeneralRe: Program crashes when form is refreshed Pin
Member 1274878324-Oct-17 16:10
Member 1274878324-Oct-17 16:10 
QuestionRe: Program crashes when form is refreshed Pin
Eddy Vluggen25-Oct-17 5:09
professionalEddy Vluggen25-Oct-17 5:09 
AnswerRe: Program crashes when form is refreshed Pin
OriginalGriff24-Oct-17 20:20
mveOriginalGriff24-Oct-17 20:20 
PraiseRe: Program crashes when form is refreshed Pin
Member 1274878331-Oct-17 15:43
Member 1274878331-Oct-17 15:43 
GeneralRe: Program crashes when form is refreshed Pin
OriginalGriff31-Oct-17 20:58
mveOriginalGriff31-Oct-17 20:58 
GeneralRe: Program crashes when form is refreshed Pin
Member 127487831-Nov-17 10:38
Member 127487831-Nov-17 10:38 
Well poop.

For debugging purposes, I made minimal changes to see if y'all's suggestions helped to isolate the issue. I commented out the DoEvents, commented out the individual Update()s for text and picturebox elements, and relied on one this.Update(), as quoted in the original post. The exact same thing happens. It crashes on this.Update after this.Invalidate with the same message and the same stack trace. Stepping through the program on Debug I can see that it crashes the SECOND time it hits this.Update(). That is consistent. It will refresh the form once, but chokes the second time.

I also ran it for a while retaining the multiple individual Update()s and with the this.Update() commented out along with the DoEvents line. Other than locking the form and failing to redraw some text (as one might expect), it hummed along perfectly. I could not minimize the form, but turning the monitor off/on had no ill effects. Since this is a long running simulation and the only important controls on the form are START and STOP buttons, that was an improvement. (There are plenty of other ways to stop it!)

So I still have the same issue without DoEvents. Any thoughts?
QuestionIssue with WPF C# Treeview GetFiles Pin
Member 1348136124-Oct-17 8:08
Member 1348136124-Oct-17 8:08 
SuggestionRe: Issue with WPF C# Treeview GetFiles Pin
Richard Deeming24-Oct-17 9:49
mveRichard Deeming24-Oct-17 9:49 
GeneralRe: Issue with WPF C# Treeview GetFiles Pin
Member 1348136124-Oct-17 10:01
Member 1348136124-Oct-17 10:01 
GeneralRe: Issue with WPF C# Treeview GetFiles Pin
Richard Deeming25-Oct-17 1:50
mveRichard Deeming25-Oct-17 1:50 
GeneralRe: Issue with WPF C# Treeview GetFiles Pin
Member 1348136125-Oct-17 3:09
Member 1348136125-Oct-17 3:09 
GeneralRe: Issue with WPF C# Treeview GetFiles Pin
Richard Deeming25-Oct-17 3:31
mveRichard Deeming25-Oct-17 3:31 
GeneralRe: Issue with WPF C# Treeview GetFiles Pin
Member 1348136125-Oct-17 9:21
Member 1348136125-Oct-17 9:21 
GeneralRe: Issue with WPF C# Treeview GetFiles Pin
Richard Deeming26-Oct-17 1:26
mveRichard Deeming26-Oct-17 1:26 
GeneralRe: Issue with WPF C# Treeview GetFiles Pin
Member 1348136126-Oct-17 9:46
Member 1348136126-Oct-17 9:46 
Questioncrystal reports prompt login information Pin
Member 1341707224-Oct-17 2:46
Member 1341707224-Oct-17 2:46 
AnswerRe: crystal reports prompt login information Pin
Afzaal Ahmad Zeeshan24-Oct-17 3:31
professionalAfzaal Ahmad Zeeshan24-Oct-17 3:31 
QuestionWhat am i supposed to use Pin
A.Mr.Nice.Guy23-Oct-17 20:40
A.Mr.Nice.Guy23-Oct-17 20:40 
AnswerRe: What am i supposed to use Pin
Mycroft Holmes23-Oct-17 22:06
professionalMycroft Holmes23-Oct-17 22:06 
AnswerRe: What am i supposed to use Pin
OriginalGriff23-Oct-17 22:16
mveOriginalGriff23-Oct-17 22:16 
GeneralRe: What am i supposed to use Pin
Jim_Snyder27-Oct-17 4:49
professionalJim_Snyder27-Oct-17 4:49 
QuestionMessage Closed Pin
22-Oct-17 21:03
Gregan Dark22-Oct-17 21:03 
AnswerRe: win6x_registry_tweak PinPopular
Pete O'Hanlon22-Oct-17 22:56
mvePete O'Hanlon22-Oct-17 22:56 

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.