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

C#

 
AnswerRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
leppie5-Oct-08 23:59
leppie5-Oct-08 23:59 
AnswerRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
Mark Churchill6-Oct-08 1:09
Mark Churchill6-Oct-08 1:09 
GeneralRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
Puneet Bhatnagar6-Oct-08 23:36
Puneet Bhatnagar6-Oct-08 23:36 
GeneralRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
Mark Churchill7-Oct-08 5:37
Mark Churchill7-Oct-08 5:37 
GeneralRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
Puneet Bhatnagar10-Oct-08 0:02
Puneet Bhatnagar10-Oct-08 0:02 
QuestionUsing FFMPEG Wmv to Swf: Not Working in C#: Need Help... Pin
elango.sham5-Oct-08 22:12
elango.sham5-Oct-08 22:12 
AnswerRe: Using FFMPEG Wmv to Swf: Not Working in C#: Need Help... Pin
leppie6-Oct-08 0:01
leppie6-Oct-08 0:01 
QuestionHow to handle unhandled exceptions in Windows Forms application Pin
matixsc5-Oct-08 22:10
professionalmatixsc5-Oct-08 22:10 
Hi to all,

In MSVS 2008 Documentation, (System.Windows.Forms) Application.ThreadException Event there is an example how to handle unhandled exceptions using:
Application.ThreadException += new ThreadExceptionEventHandler...
and
AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);

But, there is a caution that says:

"Because this is a static event, you must detach your event handlers when your application is disposed, or memory leaks will result."

So, the problem is that I'm not sure WHERE to detach these handlers. If someone knows the answer, please share this knowledge with me!

Thank you in advance,
Matix
AnswerRe: How to handle unhandled exceptions in Windows Forms application Pin
N a v a n e e t h5-Oct-08 22:25
N a v a n e e t h5-Oct-08 22:25 
GeneralRe: How to handle unhandled exceptions in Windows Forms application Pin
matixsc5-Oct-08 22:45
professionalmatixsc5-Oct-08 22:45 
GeneralRe: How to handle unhandled exceptions in Windows Forms application Pin
N a v a n e e t h5-Oct-08 23:07
N a v a n e e t h5-Oct-08 23:07 
GeneralRe: How to handle unhandled exceptions in Windows Forms application Pin
Vikram A Punathambekar5-Oct-08 23:30
Vikram A Punathambekar5-Oct-08 23:30 
GeneralRe: How to handle unhandled exceptions in Windows Forms application Pin
N a v a n e e t h5-Oct-08 23:33
N a v a n e e t h5-Oct-08 23:33 
AnswerRe: How to handle unhandled exceptions in Windows Forms application Pin
Daniel Grunwald6-Oct-08 2:44
Daniel Grunwald6-Oct-08 2:44 
GeneralRe: How to handle unhandled exceptions in Windows Forms application Pin
matixsc6-Oct-08 3:13
professionalmatixsc6-Oct-08 3:13 
GeneralRe: How to handle unhandled exceptions in Windows Forms application Pin
S. Senthil Kumar6-Oct-08 6:04
S. Senthil Kumar6-Oct-08 6:04 
QuestionHow to paste only valid value in textbox. Pin
S a n d y5-Oct-08 22:03
S a n d y5-Oct-08 22:03 
AnswerRe: How to paste only valid value in textbox. Pin
Nagy Vilmos5-Oct-08 22:05
professionalNagy Vilmos5-Oct-08 22:05 
GeneralRe: How to paste only valid value in textbox. Pin
S a n d y5-Oct-08 22:09
S a n d y5-Oct-08 22:09 
GeneralRe: How to paste only valid value in textbox. Pin
N a v a n e e t h5-Oct-08 22:29
N a v a n e e t h5-Oct-08 22:29 
AnswerRe: How to paste only valid value in textbox. Pin
Vikram A Punathambekar5-Oct-08 22:33
Vikram A Punathambekar5-Oct-08 22:33 
AnswerRe: How to paste only valid value in textbox. Pin
DaveyM696-Oct-08 0:13
professionalDaveyM696-Oct-08 0:13 
GeneralRe: How to paste only valid value in textbox. Pin
S a n d y6-Oct-08 1:41
S a n d y6-Oct-08 1:41 
GeneralRe: How to paste only valid value in textbox. Pin
DaveyM696-Oct-08 2:02
professionalDaveyM696-Oct-08 2:02 
GeneralRe: How to paste only valid value in textbox. Pin
S a n d y6-Oct-08 2:10
S a n d y6-Oct-08 2:10 

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.