Click here to Skip to main content
15,887,291 members
Home / Discussions / C#
   

C#

 
QuestionIndex remains on 0(zero) in richtextbox Pin
Dot-Net-Dev29-Dec-09 0:12
Dot-Net-Dev29-Dec-09 0:12 
AnswerRe: Index remains on 0(zero) in richtextbox Pin
Dave Kreskowiak29-Dec-09 3:53
mveDave Kreskowiak29-Dec-09 3:53 
GeneralRe: Index remains on 0(zero) in richtextbox Pin
ProtoBytes29-Dec-09 8:34
ProtoBytes29-Dec-09 8:34 
GeneralRe: Index remains on 0(zero) in richtextbox Pin
Dot-Net-Dev29-Dec-09 16:52
Dot-Net-Dev29-Dec-09 16:52 
GeneralRe: Index remains on 0(zero) in richtextbox Pin
Dave Kreskowiak29-Dec-09 18:08
mveDave Kreskowiak29-Dec-09 18:08 
QuestionWeird Debugging Problem Pin
#realJSOP29-Dec-09 0:10
mve#realJSOP29-Dec-09 0:10 
AnswerRe: Weird Debugging Problem Pin
Keith Barrow29-Dec-09 2:02
professionalKeith Barrow29-Dec-09 2:02 
AnswerRe: Weird Debugging Problem Pin
Ben Fair29-Dec-09 2:35
Ben Fair29-Dec-09 2:35 
I've only seen this kind of thing when the debug data gets "out of sync" with the source code, and it is usually resolved by doing a re-build. However, if the project is in Release Configuration rather than Debug Configuration, then optimizations in the build could be causing it to skip the code. The thing is, it usually only skips code that it determines will never be executed. I would ensure that you are working in Debug Configuration and check the values that the if statement tests as soon as it enters the event handler. If you think the compiler is errantly determining that statement to be unnecessary and optimizing it out; stick "true && " at the front of it to force the statement to resolve to true and then re-build and re-run the code.

Hold on a second here... Don't you think you might be putting the horse ahead of the cart?

GeneralRe: Weird Debugging Problem Pin
Luc Pattyn29-Dec-09 2:45
sitebuilderLuc Pattyn29-Dec-09 2:45 
GeneralRe: Weird Debugging Problem Pin
Ben Fair29-Dec-09 3:07
Ben Fair29-Dec-09 3:07 
GeneralRe: Weird Debugging Problem Pin
#realJSOP29-Dec-09 2:50
mve#realJSOP29-Dec-09 2:50 
GeneralRe: Weird Debugging Problem Pin
Ben Fair29-Dec-09 3:11
Ben Fair29-Dec-09 3:11 
GeneralRe: Weird Debugging Problem Pin
#realJSOP29-Dec-09 3:59
mve#realJSOP29-Dec-09 3:59 
GeneralRe: Weird Debugging Problem [modified] Pin
Keith Barrow29-Dec-09 3:38
professionalKeith Barrow29-Dec-09 3:38 
GeneralRe: Weird Debugging Problem Pin
#realJSOP29-Dec-09 4:02
mve#realJSOP29-Dec-09 4:02 
GeneralRe: Weird Debugging Problem Pin
Keith Barrow29-Dec-09 4:40
professionalKeith Barrow29-Dec-09 4:40 
AnswerRe: Weird Debugging Problem Pin
Saksida Bojan29-Dec-09 3:07
Saksida Bojan29-Dec-09 3:07 
GeneralRe: Weird Debugging Problem Pin
#realJSOP29-Dec-09 4:04
mve#realJSOP29-Dec-09 4:04 
GeneralRe: Weird Debugging Problem Pin
ProtoBytes29-Dec-09 8:43
ProtoBytes29-Dec-09 8:43 
Questionhow to move multipoint button at run time Pin
krunal2528-Dec-09 23:22
krunal2528-Dec-09 23:22 
AnswerRe: how to move multipoint button at run time Pin
Luc Pattyn29-Dec-09 1:11
sitebuilderLuc Pattyn29-Dec-09 1:11 
QuestionError: A Generic Error occured in GDI+ Pin
Udayaraju28-Dec-09 23:00
Udayaraju28-Dec-09 23:00 
AnswerRe: Error: A Generic Error occured in GDI+ Pin
Luc Pattyn29-Dec-09 1:15
sitebuilderLuc Pattyn29-Dec-09 1:15 
GeneralRe: Error: A Generic Error occured in GDI+ Pin
Ben Fair29-Dec-09 3:28
Ben Fair29-Dec-09 3:28 
AnswerRe: Error: A Generic Error occured in GDI+ Pin
Hristo-Bojilov29-Dec-09 1:24
Hristo-Bojilov29-Dec-09 1:24 

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.