Click here to Skip to main content
15,903,362 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Please help with a fairly simple percentage calculation.... Pin
Joey Picerno29-Aug-08 3:10
Joey Picerno29-Aug-08 3:10 
GeneralRe: Please help with a fairly simple percentage calculation.... Pin
Ashfield29-Aug-08 8:51
Ashfield29-Aug-08 8:51 
GeneralRe: Please help with a fairly simple percentage calculation.... Pin
Joey Picerno29-Aug-08 9:18
Joey Picerno29-Aug-08 9:18 
QuestionPossible memory leak Pin
dBrong28-Aug-08 11:53
dBrong28-Aug-08 11:53 
AnswerRe: Possible memory leak Pin
Scott Dorman28-Aug-08 13:34
professionalScott Dorman28-Aug-08 13:34 
GeneralRe: Possible memory leak Pin
dBrong28-Aug-08 17:00
dBrong28-Aug-08 17:00 
GeneralRe: Possible memory leak Pin
Scott Dorman28-Aug-08 18:01
professionalScott Dorman28-Aug-08 18:01 
GeneralRe: Possible memory leak Pin
Guffa28-Aug-08 21:51
Guffa28-Aug-08 21:51 
dBrong wrote:
is there a list of .net objects that explicity need dispose() to be called manually?


No, absolutely not. Such a list could never be complete, as the framework is growing with each new version, and there are thousands of thrird party libraries that contain objects that needs disposing.

If in doubt, check if the object has a Dispose method. If it does, there is a reason for that. Not every class that implements IDisposable needs disposing, but unless you have determined that it's actually not needed, you should always call the Dispose method if there is one.

Calling the Dispose method will not hurt even if it is not neccessary for that specific object. For example, you can close a SqlConnection object either by calling the Close method or the Dispose method, as the Dispose method makes sure that the Close method has been called. You can also call the Close method first, then the Dispose method, without harm. You can even call the Dispose method more than once on the same object without problems, you will never get an "object already disposed" error if you happen to call Dispose again.

Despite everything, the person most likely to be fooling you next is yourself.

QuestionClasses Pin
CodingYoshi28-Aug-08 11:25
CodingYoshi28-Aug-08 11:25 
AnswerRe: Classes Pin
Gideon Engelberth28-Aug-08 13:13
Gideon Engelberth28-Aug-08 13:13 
GeneralRe: Classes Pin
Scott Dorman28-Aug-08 13:35
professionalScott Dorman28-Aug-08 13:35 
GeneralRe: Classes Pin
Gideon Engelberth28-Aug-08 17:05
Gideon Engelberth28-Aug-08 17:05 
GeneralRe: Classes Pin
Scott Dorman28-Aug-08 17:51
professionalScott Dorman28-Aug-08 17:51 
AnswerRe: Classes [modified] Pin
Scott Dorman28-Aug-08 13:36
professionalScott Dorman28-Aug-08 13:36 
GeneralRe: Classes Pin
CodingYoshi29-Aug-08 3:17
CodingYoshi29-Aug-08 3:17 
AnswerRe: Classes Pin
Guffa29-Aug-08 4:28
Guffa29-Aug-08 4:28 
QuestionAutomatic printing with VB.Net. Pin
John Kh28-Aug-08 7:46
John Kh28-Aug-08 7:46 
AnswerRe: Automatic printing with VB.Net. Pin
paas28-Aug-08 8:53
paas28-Aug-08 8:53 
GeneralRe: Automatic printing with VB.Net. Pin
John Kh28-Aug-08 9:37
John Kh28-Aug-08 9:37 
GeneralRe: Automatic printing with VB.Net. Pin
paas29-Aug-08 1:25
paas29-Aug-08 1:25 
AnswerLow tech Automatic printing Pin
David Mujica28-Aug-08 8:57
David Mujica28-Aug-08 8:57 
AnswerRe: Automatic printing with VB.Net. Pin
compad1-Sep-08 22:20
compad1-Sep-08 22:20 
Questionhow to add parameters to a report via a textbox and a button Pin
IlseBrase28-Aug-08 6:51
IlseBrase28-Aug-08 6:51 
AnswerCode stub Pin
David Mujica28-Aug-08 7:13
David Mujica28-Aug-08 7:13 
Questionscan an image from the scanner device directly from the vb.net application Pin
krinaljariwala28-Aug-08 5:20
krinaljariwala28-Aug-08 5:20 

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.