Click here to Skip to main content
15,892,161 members
Home / Discussions / C#
   

C#

 
GeneralRe: OutOfMemory exception Pin
Saira Tanwir22-Feb-07 7:44
Saira Tanwir22-Feb-07 7:44 
GeneralRe: OutOfMemory exception Pin
Luc Pattyn22-Feb-07 8:15
sitebuilderLuc Pattyn22-Feb-07 8:15 
GeneralRe: OutOfMemory exception Pin
Dave Kreskowiak22-Feb-07 9:00
mveDave Kreskowiak22-Feb-07 9:00 
AnswerRe: OutOfMemory exception Pin
malharone22-Feb-07 7:51
malharone22-Feb-07 7:51 
Answer[Message Deleted] Pin
Saira Tanwir22-Feb-07 7:55
Saira Tanwir22-Feb-07 7:55 
GeneralRe: OutOfMemory exception Pin
Luc Pattyn22-Feb-07 8:14
sitebuilderLuc Pattyn22-Feb-07 8:14 
GeneralRe: OutOfMemory exception Pin
Saira Tanwir22-Feb-07 8:23
Saira Tanwir22-Feb-07 8:23 
GeneralRe: OutOfMemory exception Pin
malharone22-Feb-07 8:15
malharone22-Feb-07 8:15 
That is if you have created your custom .. e.g if you're creating new Brush objects for paiting custom icons/images on your menu, but left out the dispose part by accident, this is possible.

you could do:

Brush b = null;<br />
try<br />
{<br />
  b = new ...<br />
}<br />
finally<br />
{<br />
  b.Dispose();<br />
}


OR

using (Brush b = new ...)<br />
{<br />
}


The using expression takes any object that implements IDisposable. I prefer the "using" for cleanliness, and never having to forget the 'dispose' portion in finally.

- Malhar
GeneralRe: OutOfMemory exception Pin
Saira Tanwir22-Feb-07 8:20
Saira Tanwir22-Feb-07 8:20 
QuestionAsymmetric Encryption of File Pin
Vasudevan Deepak Kumar22-Feb-07 7:07
Vasudevan Deepak Kumar22-Feb-07 7:07 
QuestionWebBrowser Control Pin
zaboboa22-Feb-07 6:22
zaboboa22-Feb-07 6:22 
AnswerRe: WebBrowser Control Pin
Ravi Bhavnani22-Feb-07 6:32
professionalRavi Bhavnani22-Feb-07 6:32 
GeneralRe: WebBrowser Control Pin
zaboboa22-Feb-07 7:16
zaboboa22-Feb-07 7:16 
GeneralRe: WebBrowser Control Pin
Ravi Bhavnani22-Feb-07 7:27
professionalRavi Bhavnani22-Feb-07 7:27 
GeneralRe: WebBrowser Control Pin
zaboboa22-Feb-07 7:32
zaboboa22-Feb-07 7:32 
GeneralRe: WebBrowser Control Pin
Ravi Bhavnani22-Feb-07 7:38
professionalRavi Bhavnani22-Feb-07 7:38 
QuestionDataTableReader is invalid for current DataTable Pin
bemahesh22-Feb-07 5:50
bemahesh22-Feb-07 5:50 
QuestionBig html string. How to store them? [modified] Pin
Scripter4722-Feb-07 5:28
Scripter4722-Feb-07 5:28 
AnswerRe: Big html string. How to store them? Pin
Ravi Bhavnani22-Feb-07 6:32
professionalRavi Bhavnani22-Feb-07 6:32 
GeneralRe: Big html string. How to store them? Pin
Scripter4722-Feb-07 7:22
Scripter4722-Feb-07 7:22 
GeneralRe: Big html string. How to store them? Pin
Stefan Troschuetz22-Feb-07 7:31
Stefan Troschuetz22-Feb-07 7:31 
GeneralRe: Big html string. How to store them? Pin
Ravi Bhavnani22-Feb-07 7:32
professionalRavi Bhavnani22-Feb-07 7:32 
GeneralRe: Big html string. How to store them? Pin
Luc Pattyn22-Feb-07 7:33
sitebuilderLuc Pattyn22-Feb-07 7:33 
GeneralRe: Big html string. How to store them? Pin
Scripter4722-Feb-07 7:45
Scripter4722-Feb-07 7:45 
QuestionHow to change border (frame) color on a Form? Pin
ClarreW22-Feb-07 5:08
ClarreW22-Feb-07 5:08 

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.