Click here to Skip to main content
15,885,216 members
Home / Discussions / C#
   

C#

 
GeneralRe: Smart Card ACOS3-24 1.07.18 Pin
Ari Astika19-Apr-11 21:39
Ari Astika19-Apr-11 21:39 
QuestionQuestion about Weak Events... Pin
SledgeHammer0119-Apr-11 7:51
SledgeHammer0119-Apr-11 7:51 
AnswerRe: Question about Weak Events... Pin
David198719-Apr-11 7:58
David198719-Apr-11 7:58 
GeneralRe: Question about Weak Events... Pin
SledgeHammer0119-Apr-11 8:05
SledgeHammer0119-Apr-11 8:05 
GeneralRe: Question about Weak Events... Pin
David198719-Apr-11 8:32
David198719-Apr-11 8:32 
AnswerRe: Question about Weak Events... Pin
DaveyM6919-Apr-11 8:42
professionalDaveyM6919-Apr-11 8:42 
GeneralRe: Question about Weak Events... Pin
SledgeHammer0119-Apr-11 10:06
SledgeHammer0119-Apr-11 10:06 
GeneralRe: Question about Weak Events... Pin
DaveyM6919-Apr-11 12:13
professionalDaveyM6919-Apr-11 12:13 
I'm not sure to be honest whether it will solve your problem. Every weak reference solution seems to have pros and cons. The event model employed by .NET is flawed in this regard and relies on consumers unsubscribing correctly.

Another option maybe to forget about events in the normal way and go back to generating old fashioned windows messages or something similar so interested parties can override WndProc and catch the event there - no direct subscription... Maybe not practical or possible in your situation, certainly not as elegant as events, but worth a thought?
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



GeneralRe: Question about Weak Events... Pin
SledgeHammer0119-Apr-11 12:27
SledgeHammer0119-Apr-11 12:27 
GeneralRe: Question about Weak Events... Pin
Mark198619-Apr-11 19:36
Mark198619-Apr-11 19:36 
QuestionHow To Use a C Libray in your C# Program Pin
Andy20219-Apr-11 0:43
Andy20219-Apr-11 0:43 
AnswerRe: How To Use a C Libray in your C# Program Pin
Luc Pattyn19-Apr-11 1:05
sitebuilderLuc Pattyn19-Apr-11 1:05 
AnswerRe: How To Use a C Libray in your C# Program Pin
Rick Shaub19-Apr-11 10:18
Rick Shaub19-Apr-11 10:18 
QuestionHashtable/IDictionary - getHashCode and Equals [modified] Pin
devvvy18-Apr-11 23:34
devvvy18-Apr-11 23:34 
AnswerRe: Hashtable/IDictionary - getHashCode and Equals Pin
David198718-Apr-11 23:56
David198718-Apr-11 23:56 
GeneralRe: Hashtable/IDictionary - getHashCode and Equals Pin
Md. Marufuzzaman19-Apr-11 2:06
professionalMd. Marufuzzaman19-Apr-11 2:06 
AnswerRe: Hashtable/IDictionary - getHashCode and Equals Pin
Luc Pattyn19-Apr-11 0:02
sitebuilderLuc Pattyn19-Apr-11 0:02 
AnswerCORRECTION - Dictionary did throw an ArgumentException if insert two items where Equals returned true Pin
devvvy24-Apr-11 23:43
devvvy24-Apr-11 23:43 
QuestionWhere to Place FullAddress Pin
Anubhava Dimri18-Apr-11 21:24
Anubhava Dimri18-Apr-11 21:24 
AnswerRe: Where to Place FullAddress Pin
Wayne Gaylard18-Apr-11 21:32
professionalWayne Gaylard18-Apr-11 21:32 
AnswerRe: Where to Place FullAddress Pin
Keith Barrow18-Apr-11 22:39
professionalKeith Barrow18-Apr-11 22:39 
GeneralRe: Where to Place FullAddress Pin
Anubhava Dimri18-Apr-11 22:46
Anubhava Dimri18-Apr-11 22:46 
GeneralRe: Where to Place FullAddress Pin
Keith Barrow18-Apr-11 22:57
professionalKeith Barrow18-Apr-11 22:57 
GeneralRe: Where to Place FullAddress Pin
Anubhava Dimri18-Apr-11 23:22
Anubhava Dimri18-Apr-11 23:22 
GeneralRe: Where to Place FullAddress Pin
Dave Kreskowiak19-Apr-11 1:49
mveDave Kreskowiak19-Apr-11 1:49 

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.