Click here to Skip to main content
15,924,036 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem Solution to working code that stops working Pin
Dave Kreskowiak19-Nov-13 4:19
mveDave Kreskowiak19-Nov-13 4:19 
GeneralRe: Problem Solution to working code that stops working Pin
_Maxxx_19-Nov-13 11:52
professional_Maxxx_19-Nov-13 11:52 
GeneralRe: Problem Solution to working code that stops working Pin
Mycroft Holmes19-Nov-13 13:46
professionalMycroft Holmes19-Nov-13 13:46 
GeneralRe: Problem Solution to working code that stops working Pin
Matty2219-Nov-13 15:20
Matty2219-Nov-13 15:20 
JokeRe: Problem Solution to working code that stops working Pin
Richard Andrew x6419-Nov-13 17:42
professionalRichard Andrew x6419-Nov-13 17:42 
GeneralRe: Problem Solution to working code that stops working Pin
Matty2223-Nov-13 5:03
Matty2223-Nov-13 5:03 
GeneralRe: Problem Solution to working code that stops working Pin
RBKpro22-Nov-13 11:04
RBKpro22-Nov-13 11:04 
GeneralRe: Problem Solution to working code that stops working Pin
Matty2223-Nov-13 4:57
Matty2223-Nov-13 4:57 
Reason it may have not been subscribed:

1. You were using the visual studio forms designer; moved the control, cut and paste, played with the properties or otherwise changed the control in the designer and forgot to subscribe your method to the relevant event in the UI designer and the emitted *.designer.cs was missing the subscription you wanted

2. You were subscribing by hand without knowing what you are doing and subscribed to the event in a bad place in the applications life cycle. Eg, after the event had been fired.

Solution to 1 and 2 as with all things is to know what you are doing.

The most important thing to do is obviously identify the the place in your code where you subscribe to the event.

If you can't locate where you subscribe to the event; then it's not surprising methods don't get called when you expect them to and you need to read more about how events work and .NET in general..

If you do know where you are subscribing and you've checked using the debugger that it gets called at an appropriate time in the applications life cycle then it's DevEx's problem as they're not triggering the event reliably, which is probably unlikely.
Questionwindows app's Pin
Member 1041118019-Nov-13 0:04
Member 1041118019-Nov-13 0:04 
AnswerRe: windows app's Pin
Eddy Vluggen19-Nov-13 0:33
professionalEddy Vluggen19-Nov-13 0:33 
AnswerRe: windows app's Pin
Pete O'Hanlon19-Nov-13 0:35
mvePete O'Hanlon19-Nov-13 0:35 
AnswerRe: windows app's Pin
Chris Quinn19-Nov-13 0:38
Chris Quinn19-Nov-13 0:38 
AnswerRe: windows app's Pin
BillWoodruff19-Nov-13 6:32
professionalBillWoodruff19-Nov-13 6:32 
AnswerRe: windows app's Pin
Abhinav S19-Nov-13 16:30
Abhinav S19-Nov-13 16:30 
QuestionAI Pin
Member 1036314518-Nov-13 23:40
Member 1036314518-Nov-13 23:40 
QuestionRe: AI Pin
Richard MacCutchan19-Nov-13 0:01
mveRichard MacCutchan19-Nov-13 0:01 
AnswerRe: AI Pin
BillWoodruff19-Nov-13 6:34
professionalBillWoodruff19-Nov-13 6:34 
GeneralRe: AI Pin
Mycroft Holmes19-Nov-13 13:40
professionalMycroft Holmes19-Nov-13 13:40 
Questionwinform to wpf Pin
Member 1026351918-Nov-13 22:42
Member 1026351918-Nov-13 22:42 
AnswerRe: winform to wpf Pin
Abhinav S18-Nov-13 22:44
Abhinav S18-Nov-13 22:44 
QuestionRe: winform to wpf Pin
Eddy Vluggen19-Nov-13 0:33
professionalEddy Vluggen19-Nov-13 0:33 
QuestionC# Com Interface Pin
Rakesh_Ranjan_Incadea18-Nov-13 21:06
Rakesh_Ranjan_Incadea18-Nov-13 21:06 
AnswerRe: C# Com Interface Pin
Marco Bertschi18-Nov-13 21:33
protectorMarco Bertschi18-Nov-13 21:33 
AnswerRe: C# Com Interface Pin
Bernhard Hiller18-Nov-13 22:02
Bernhard Hiller18-Nov-13 22:02 
GeneralRe: C# Com Interface Pin
Rakesh_Ranjan_Incadea18-Nov-13 22:40
Rakesh_Ranjan_Incadea18-Nov-13 22:40 

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.