Click here to Skip to main content
15,915,501 members
Home / Discussions / C#
   

C#

 
QuestionAutoSizeMode = Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized. [modified] Pin
Zadbuke8-Jun-11 0:53
Zadbuke8-Jun-11 0:53 
AnswerRe: AutoSizeMode = Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized. Pin
Luc Pattyn8-Jun-11 1:48
sitebuilderLuc Pattyn8-Jun-11 1:48 
QuestionSending HttpWebRequest with a Unicode string Pin
ShadowUz7-Jun-11 18:58
ShadowUz7-Jun-11 18:58 
AnswerRe: Sending HttpWebRequest with a Unicode string Pin
Peter_in_27807-Jun-11 21:30
professionalPeter_in_27807-Jun-11 21:30 
AnswerRe: Sending HttpWebRequest with a Unicode string Pin
BobJanova7-Jun-11 23:20
BobJanova7-Jun-11 23:20 
GeneralRe: Sending HttpWebRequest with a Unicode string Pin
ShadowUz9-Jun-11 16:20
ShadowUz9-Jun-11 16:20 
QuestionExecuting a delegate from one class and project to another [modified] Pin
MAW307-Jun-11 14:02
MAW307-Jun-11 14:02 
AnswerRe: Executing a delegate from one class and project to another Pin
DaveyM697-Jun-11 14:12
professionalDaveyM697-Jun-11 14:12 
In your static class B, delC is set to null and never set to an instance of B.DelC as the error message indicates.

Sort of OT: Why all the static classes? It seems you may be learning and confused by instances and trying to work around it by using static. Bad idea IMO!

If this is just a test code sample then fine, but otherwise; the System.EventHandler delegate that is used everywhere has the same signature so I would use that instead.

[Edit] When posting code, please place the code inside <pre></pre> tags. There is a widget available when posting that says "code block" that will help with this. Your code will then be much easier to read, therefore easier for us to help you!
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: Executing a delegate from one class and project to another Pin
MAW307-Jun-11 14:35
MAW307-Jun-11 14:35 
AnswerRe: Executing a delegate from one class and project to another Pin
PIEBALDconsult7-Jun-11 15:31
mvePIEBALDconsult7-Jun-11 15:31 
GeneralRe: Executing a delegate from one class and project to another [modified] Pin
MAW307-Jun-11 15:52
MAW307-Jun-11 15:52 
GeneralRe: Executing a delegate from one class and project to another [modified] Pin
PIEBALDconsult7-Jun-11 17:34
mvePIEBALDconsult7-Jun-11 17:34 
GeneralRe: Executing a delegate from one class and project to another Pin
MAW307-Jun-11 20:48
MAW307-Jun-11 20:48 
GeneralRe: Executing a delegate from one class and project to another Pin
PIEBALDconsult8-Jun-11 2:31
mvePIEBALDconsult8-Jun-11 2:31 
QuestionHelp reading window titles and text in c sharp Pin
turbosupramk37-Jun-11 6:15
turbosupramk37-Jun-11 6:15 
AnswerRe: Help reading window titles and text in c sharp Pin
SledgeHammer017-Jun-11 7:32
SledgeHammer017-Jun-11 7:32 
GeneralRe: Help reading window titles and text in c sharp Pin
turbosupramk37-Jun-11 11:05
turbosupramk37-Jun-11 11:05 
GeneralRe: Help reading window titles and text in c sharp Pin
SledgeHammer017-Jun-11 11:44
SledgeHammer017-Jun-11 11:44 
AnswerRe: Help reading window titles and text in c sharp [modified] Pin
DaveyM697-Jun-11 10:14
professionalDaveyM697-Jun-11 10:14 
GeneralRe: Help reading window titles and text in c sharp Pin
turbosupramk37-Jun-11 11:00
turbosupramk37-Jun-11 11:00 
GeneralRe: Help reading window titles and text in c sharp Pin
DaveyM697-Jun-11 11:25
professionalDaveyM697-Jun-11 11:25 
GeneralRe: Help reading window titles and text in c sharp Pin
Pete O'Hanlon7-Jun-11 11:38
mvePete O'Hanlon7-Jun-11 11:38 
GeneralRe: Help reading window titles and text in c sharp Pin
DaveyM697-Jun-11 11:54
professionalDaveyM697-Jun-11 11:54 
GeneralRe: Help reading window titles and text in c sharp Pin
DaveyM697-Jun-11 12:00
professionalDaveyM697-Jun-11 12:00 
QuestionWhy exception is not caught in BackgroundWorker DoWork routine? Pin
Chesnokov Yuriy7-Jun-11 3:56
professionalChesnokov Yuriy7-Jun-11 3: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.